From 61964d477a677fa39d69d0910d1d552c31bf038d Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Fri, 29 Nov 2024 16:31:41 +0800 Subject: [PATCH] chore:tkinter --- tkinter_ui/tkinter_ui.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tkinter_ui/tkinter_ui.py b/tkinter_ui/tkinter_ui.py index 4a0b5a947d..628279b4d0 100644 --- a/tkinter_ui/tkinter_ui.py +++ b/tkinter_ui/tkinter_ui.py @@ -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: