diff --git a/customtkinter/widgets/ctk_canvas.py b/customtkinter/widgets/ctk_canvas.py index 6502cf0..c3f9cd6 100644 --- a/customtkinter/widgets/ctk_canvas.py +++ b/customtkinter/widgets/ctk_canvas.py @@ -1,6 +1,6 @@ import tkinter import sys -from typing import Union +from typing import Union, Tuple class CTkCanvas(tkinter.Canvas): @@ -44,7 +44,7 @@ class CTkCanvas(tkinter.Canvas): return self.radius_to_char_fine[radius] def create_aa_circle(self, x_pos: int, y_pos: int, radius: int, angle: int = 0, fill: str = "white", - tags: Union[str, tuple[str, ...]] = "", anchor: str = tkinter.CENTER) -> int: + tags: Union[str, Tuple[str, ...]] = "", anchor: str = tkinter.CENTER) -> int: # create a circle with a font element circle_1 = self.create_text(x_pos, y_pos, text=self.get_char_from_radius(radius), anchor=anchor, fill=fill, font=("CustomTkinter_shapes_font", -radius * 2), tags=tags, angle=angle) diff --git a/setup.cfg b/setup.cfg index 54da0bd..dba9b16 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,7 @@ classifiers = packages = customtkinter customtkinter.widgets + customtkinter.windows install_requires = darkdetect include_package_data = True diff --git a/test/manual_integration_tests/test_scaling/test_scaling_toplevel_pack.py b/test/manual_integration_tests/test_scaling/test_scaling_toplevel_pack.py index 6c29373..5845c62 100644 --- a/test/manual_integration_tests/test_scaling/test_scaling_toplevel_pack.py +++ b/test/manual_integration_tests/test_scaling/test_scaling_toplevel_pack.py @@ -11,6 +11,7 @@ root_tk.geometry("400x480") root_tk.title("CustomTkinter manual scaling test") top_tk = customtkinter.CTkToplevel(root_tk) +top_tk.geometry("500x500") #root_tk.minsize(200, 200) #root_tk.maxsize(520, 520)