增加了配电app

This commit is contained in:
zjk
2025-05-05 19:03:57 +08:00
parent 97a86acae4
commit 3e33c95cb1
25 changed files with 4583 additions and 233 deletions
+19
View File
@@ -0,0 +1,19 @@
import tkinter as tk
from PowerManagerApp import PowerManagerApp
from db import DB
def main():
# 创建Tkinter根窗口
root = tk.Tk()
# 创建PowerManagerApp实例
app = PowerManagerApp(root)
# 设置窗口关闭事件处理
root.protocol("WM_DELETE_WINDOW", app.on_closing)
# 启动主循环
root.mainloop()
if __name__ == "__main__":
main()