fix:添加niceGui库美化页面
This commit is contained in:
13
ui/core/state.py
Normal file
13
ui/core/state.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import threading
|
||||
|
||||
class AppState:
|
||||
def __init__(self):
|
||||
self.stop_event = threading.Event()
|
||||
self.is_running = False
|
||||
# 这些 UI 元素的引用将在 UI 初始化时被赋值
|
||||
self.progress_bar = None
|
||||
self.progress_label = None
|
||||
self.log_element = None
|
||||
|
||||
# 创建全局单例
|
||||
app_state = AppState()
|
||||
Reference in New Issue
Block a user