Skip to content

Commit

Permalink
Merge pull request #592 from Guovin/dev
Browse files Browse the repository at this point in the history
chore:tkinter
  • Loading branch information
Guovin authored Nov 29, 2024
2 parents 524eb95 + 61964d4 commit 95a8d40
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tkinter_ui/tkinter_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@
from subscribe import SubscribeUI
from online_search import OnlineSearchUI
import json
from pathlib import Path
from sys import base_prefix
from os import environ
import platform

if not ("TCL_LIBRARY" in environ and "TK_LIBRARY" in environ):
try:
tk.Tk()
except tk.TclError:
tk_dir = "tcl" if platform.system() == "Windows" else "lib"
tk_path = Path(base_prefix) / tk_dir
environ["TCL_LIBRARY"] = str(next(tk_path.glob("tcl8.*")))
environ["TK_LIBRARY"] = str(next(tk_path.glob("tk8.*")))


class TkinterUI:
Expand Down

0 comments on commit 95a8d40

Please sign in to comment.