CustomTkinter/customtkinter/customtkinter_settings.py

22 lines
488 B
Python
Raw Normal View History

2022-02-23 00:38:40 +03:00
import sys
class CTkSettings:
scaling_factor = 1
2022-02-23 01:50:03 +03:00
circle_font_is_ready = False
hand_cursor_enabled = True
preferred_drawing_method = None
@classmethod
def init_drawing_method(cls):
""" possible: 'polygon_shapes', 'font_shapes', 'circle_shapes' """
if sys.platform == "darwin":
cls.preferred_drawing_method = "polygon_shapes"
else:
cls.preferred_drawing_method = "font_shapes"
CTkSettings.init_drawing_method()