-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_state.py
More file actions
39 lines (35 loc) · 1006 Bytes
/
app_state.py
File metadata and controls
39 lines (35 loc) · 1006 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
34
35
36
37
38
39
from dataclasses import dataclass, field
from typing import Any
@dataclass
class UIRefs:
root: Any = None
root_icon: Any = None
tree: Any = None
slider: Any = None
progressbar: Any = None
status_bar: Any = None
audio_settings_window: Any = None
start_button: Any = None
stop_button: Any = None
delete_button: Any = None
pause_button: Any = None
next_button: Any = None
audio_settings_button: Any = None
audio_device_dropdown: Any = None
hog_mode_switch: Any = None
@dataclass
class AppState:
settings: dict = field(default_factory=dict)
songs: dict = field(default_factory=dict)
last_highlighted: Any = None
is_dragging: bool = False
drag_items: tuple = ()
drop_target_index: Any = None
drop_indicator_id: Any = None
last_y: Any = None
current_song: Any = None
is_playing: bool = False
is_paused: bool = False
current_position: int = 0
waiting_time: int = 0
is_converting: bool = False