first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""
|
||||
主应用程序类
|
||||
"""
|
||||
import tkinter as tk
|
||||
from app.ui import MainWindow
|
||||
|
||||
|
||||
class MainApplication:
|
||||
"""应用程序主控制器"""
|
||||
|
||||
def __init__(self, root: tk.Tk):
|
||||
self.root = root
|
||||
self.root.title("cwExcel")
|
||||
self.root.geometry("1024x680")
|
||||
self.root.minsize(800, 500)
|
||||
|
||||
# 构建主窗口
|
||||
self.main_window = MainWindow(root)
|
||||
|
||||
def run(self):
|
||||
"""启动应用程序主循环"""
|
||||
self.root.mainloop()
|
||||
Reference in New Issue
Block a user