Files
sfgrid/starter.py
T

21 lines
553 B
Python

# coding:utf-8
"""
启动入口 — 默认使用 Flet2 UI。
使用 --tk 参数切换到 Tkinter UI。
"""
import sys
if __name__ == '__main__':
if '--tk' in sys.argv:
from core.ui.tkinter.splash import SplashWindow
from tkinter import messagebox
try:
window = SplashWindow().run()
if window:
window.run()
except Exception as e:
messagebox.showerror("错误", f"系统初始化失败: {str(e)}")
else:
from core.ui.flet.app_v2 import run
run()