We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d30fa17 commit e704c16Copy full SHA for e704c16
1 file changed
auto_gui_package.py
@@ -28,11 +28,6 @@ def __init__(self, root):
28
self.root = root
29
self.root.title("全自动体力获取助手 v1.0")
30
self.root.geometry("900x750")
31
- # 🟢 新增:设置窗口左上角图标 (必须使用 resource_path 确保打包后能找到)
32
- try:
33
- self.root.iconbitmap(resource_path("app_icon.ico"))
34
- except Exception:
35
- pass # 防止没有图标文件时报错崩溃
36
37
# === 主题配色 ===
38
self.themes = {
@@ -415,4 +410,5 @@ def run_task(self):
415
410
root.mainloop()
416
411
else:
417
412
temp_root.destroy()
418
- sys.exit() # 用户拒绝,直接退出
413
+
414
+ sys.exit() # 用户拒绝,直接退出
0 commit comments