Add files via upload

This commit is contained in:
Anjok07
2022-12-27 04:32:50 -06:00
committed by GitHub
parent 729f6d6744
commit 03787f5a61
2 changed files with 56 additions and 1 deletions

View File

@@ -1,4 +1,10 @@
from pathlib import Path
import platform
if platform.system() == "Darwin":
sun_valley_tcl = "sun-valley_darwin.tcl"
else:
sun_valley_tcl = "sun-valley.tcl"
inited = False
root = None
@@ -12,7 +18,7 @@ def init(func):
if not inited:
from tkinter import _default_root
path = (Path(__file__).parent / "sun-valley.tcl").resolve()
path = (Path(__file__).parent / sun_valley_tcl).resolve()
try:
_default_root.tk.call("source", str(path))