-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.py
More file actions
33 lines (30 loc) · 964 Bytes
/
state.py
File metadata and controls
33 lines (30 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#state.py
import threading
dc_event = threading.Event()
sc_event = threading.Event()
update_available = False
update_message = "Checking for updates..." # Status message for update check
username = None
password = None
driver_dc = None
driver_sc = None
dc_win = None
sc_win = None
sc_hwnd = None
driver_path = None
root = None
should_abort = False
department_var = None
zoom_var = None
notebook = None
tools_frame = None
click_blocker = None
relaunched = False
settings_frame = None # Reference to settings tab for refreshing after login
logged_in = False # Track login state for user-specific settings
decant_gtin_results_win = None # Toplevel window for Decant GTIN search results
# User settings cache (pre-loaded during splash screen for fast login)
# Format: {"username": {"theme": "dark", "zoom": "200"}, ...}
user_settings_cache = {}
# Performance timing
login_start_time = None # Timestamp when login button is pressed (for performance measurement)