增加了配电app
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user