新增功能

This commit is contained in:
Your Name
2026-08-19 17:35:59 +08:00
parent f8c78739e7
commit 05050ff6f3
188 changed files with 18838 additions and 5337 deletions
+30 -30
View File
@@ -1,30 +1,30 @@
# -*- coding: utf-8 -*-
"""打包与源码共用的启动入口。
关键点:默认(Qt 界面)路径下绝不 import wechat_gui——那个模块顶层就会加载
tkinter/tcl,冷启动平白多出一大截;tk 经典界面只在显式要求或 PySide6 缺失
时才加载。
"""
import os
import sys
def main() -> None:
if "--classic-ui" not in sys.argv and os.environ.get("WECOM_RPA_CLASSIC_UI") != "1":
try:
from wechat_gui_qt import main as qt_main
except ImportError as exc:
if not (exc.name or "").startswith("PySide6"):
raise
else:
qt_main()
return
from wechat_gui import run_classic_ui
run_classic_ui()
if __name__ == "__main__":
main()
# -*- coding: utf-8 -*-
"""打包与源码共用的启动入口。
关键点:默认(Qt 界面)路径下绝不 import wechat_gui——那个模块顶层就会加载
tkinter/tcl,冷启动平白多出一大截;tk 经典界面只在显式要求或 PySide6 缺失
时才加载。
"""
import os
import sys
def main() -> None:
if "--classic-ui" not in sys.argv and os.environ.get("WECOM_RPA_CLASSIC_UI") != "1":
try:
from wechat_gui_qt import main as qt_main
except ImportError as exc:
if not (exc.name or "").startswith("PySide6"):
raise
else:
qt_main()
return
from wechat_gui import run_classic_ui
run_classic_ui()
if __name__ == "__main__":
main()