代码整理

This commit is contained in:
2025-11-25 17:27:58 +08:00
parent 60af627806
commit 6b3b1a1f76
5 changed files with 4 additions and 18 deletions
+3 -5
View File
@@ -1,10 +1,9 @@
import tkinter as tk
from tkinter import ttk
from core.logger import LogLevel, LogData, PrintLog
from core.qmt import qmtv
from core.sfgrid.sfgrid_ui import TradeTargetUI
from tkinter import ttk, messagebox
from tkinter import ttk
from core.eventbus import EventPrintLog
from core.eventbus import event_bus as eBus
@@ -15,6 +14,8 @@ class MainWindow:
self.root.title("神之一手 - 交易系统")
self.root.geometry("1400x700")
self.logLevel = LogLevel[configLogLevel]
PrintLog(LogLevel.DEBUG, f"系统启动成功 {self.logLevel.name}")
# 当前选中的策略Tab索引
self.current_strategy_index = 0
# 存储各个Frame的引用
@@ -23,9 +24,6 @@ class MainWindow:
self.log_visible = False
self.create_ui()
self.logLevel = LogLevel[configLogLevel]
PrintLog(LogLevel.DEBUG, f"系统启动成功 {self.logLevel.name}")
eBus.subscribe(EventPrintLog, self.on_log_event)