mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
13 lines
324 B
Python
13 lines
324 B
Python
import sys
|
|
|
|
from .ctk_canvas import CTkCanvas
|
|
from .draw_engine import DrawEngine
|
|
|
|
CTkCanvas.init_font_character_mapping()
|
|
|
|
# determine draw method based on current platform
|
|
if sys.platform == "darwin":
|
|
DrawEngine.preferred_drawing_method = "polygon_shapes"
|
|
else:
|
|
DrawEngine.preferred_drawing_method = "font_shapes"
|