small fixes

This commit is contained in:
Tom Schimansky 2022-05-22 02:12:13 +02:00
parent fef64638c8
commit 325864c0d1
3 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -17,6 +17,7 @@ classifiers =
packages =
customtkinter
customtkinter.widgets
customtkinter.windows
install_requires =
darkdetect
include_package_data = True

View File

@ -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)