mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
small fixes
This commit is contained in:
parent
fef64638c8
commit
325864c0d1
@ -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)
|
||||
|
@ -17,6 +17,7 @@ classifiers =
|
||||
packages =
|
||||
customtkinter
|
||||
customtkinter.widgets
|
||||
customtkinter.windows
|
||||
install_requires =
|
||||
darkdetect
|
||||
include_package_data = True
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user