添加dummy gateway

This commit is contained in:
2026-06-02 18:07:55 +08:00
parent 6b3b1a1f76
commit db910e03d6
5 changed files with 373 additions and 229 deletions
+12 -1
View File
@@ -3,7 +3,18 @@ from tkinter import ttk
from core.logger import LogLevel, LogData, PrintLog
from core.sfgrid.sfgrid_ui import TradeTargetUI
from tkinter import ttk
# 检测运行环境,决定使用真实或模拟 QMT
def get_qmt_module():
try:
# 尝试导入真实 QMT,如果失败则使用模拟
from core.qmt import qmtv
return qmtv
except ImportError:
from core.qmt_dummy import qmtv
return qmtv
qmtv = get_qmt_module()
from core.eventbus import EventPrintLog
from core.eventbus import event_bus as eBus