第一个Alpha版本

This commit is contained in:
2025-11-14 18:09:20 +08:00
parent cd67c9ad60
commit 6810b55cbb
8 changed files with 31 additions and 18 deletions
+10 -1
View File
@@ -1,21 +1,30 @@
import tkinter as tk
from tkinter import ttk
from core.logger import LogLevel
from core.qmt import qmtv
from core.sfgrid.sfgrid_ui import TradeTargetUI
from tkinter import ttk, messagebox
class MainWindow:
def __init__(self):
self.root = tk.Tk()
self.root.title("神之一手 - 交易系统")
self.root.geometry("1400x700")
# 当前选中的策略Tab索引
self.current_strategy_index = 0
# 存储各个Frame的引用
self.strategy_frames = {}
# 日志面板可见性标志
self.log_visible = False
result:bool = qmtv.connect()
if not result:
messagebox.showinfo("提示", "QMT连接失败,请修改配置文件。")
self.root.destroy()
return
# 创建界面
print(f'创建界面')
self.create_ui()