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 tkinter
|
||||||
import sys
|
import sys
|
||||||
from typing import Union
|
from typing import Union, Tuple
|
||||||
|
|
||||||
|
|
||||||
class CTkCanvas(tkinter.Canvas):
|
class CTkCanvas(tkinter.Canvas):
|
||||||
@ -44,7 +44,7 @@ class CTkCanvas(tkinter.Canvas):
|
|||||||
return self.radius_to_char_fine[radius]
|
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",
|
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
|
# 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,
|
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)
|
font=("CustomTkinter_shapes_font", -radius * 2), tags=tags, angle=angle)
|
||||||
|
@ -17,6 +17,7 @@ classifiers =
|
|||||||
packages =
|
packages =
|
||||||
customtkinter
|
customtkinter
|
||||||
customtkinter.widgets
|
customtkinter.widgets
|
||||||
|
customtkinter.windows
|
||||||
install_requires =
|
install_requires =
|
||||||
darkdetect
|
darkdetect
|
||||||
include_package_data = True
|
include_package_data = True
|
||||||
|
@ -11,6 +11,7 @@ root_tk.geometry("400x480")
|
|||||||
root_tk.title("CustomTkinter manual scaling test")
|
root_tk.title("CustomTkinter manual scaling test")
|
||||||
|
|
||||||
top_tk = customtkinter.CTkToplevel(root_tk)
|
top_tk = customtkinter.CTkToplevel(root_tk)
|
||||||
|
top_tk.geometry("500x500")
|
||||||
|
|
||||||
#root_tk.minsize(200, 200)
|
#root_tk.minsize(200, 200)
|
||||||
#root_tk.maxsize(520, 520)
|
#root_tk.maxsize(520, 520)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user