Repository navigation
Expand file tree
/
Copy path__init__.py
More file actions
65 lines (58 loc) · 1.5 KB
/
Copy path__init__.py
File metadata and controls
65 lines (58 loc) · 1.5 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"""
GUI Module - Python Packaging Tool
This module provides the graphical user interface for the Python packaging tool.
Following PyQt6 best practices with modular architecture:
- main_window: Main application window
- styles: Theme and stylesheet management
- widgets: Custom widgets and icon generation
- controllers: Worker threads and background task management
Architecture Overview:
MainWindow
├── ThemeManager (styles.themes)
├── IconGenerator (widgets.icons)
├── WorkerSignals (controllers.workers)
└── Various Workers (controllers.workers)
"""
from gui.controllers import (
BaseWorker,
DependencyAnalysisWorker,
GenericWorker,
PackagingWorker,
WorkerSignals,
)
from gui.main_window import MainWindow
# Re-export commonly used components for convenience
from gui.styles import (
DARK_COLORS,
LIGHT_COLORS,
ThemeColors,
ThemeManager,
ThemeMode,
)
from gui.widgets import (
IconGenerator,
create_themed_checkbox_icons,
create_themed_radio_icons,
)
__all__ = [
# Main window
"MainWindow",
# Theme management
"ThemeMode",
"ThemeColors",
"ThemeManager",
"LIGHT_COLORS",
"DARK_COLORS",
# Widgets
"IconGenerator",
"create_themed_checkbox_icons",
"create_themed_radio_icons",
# Workers
"WorkerSignals",
"BaseWorker",
"PackagingWorker",
"DependencyAnalysisWorker",
"GenericWorker",
]
# 从统一的版本模块导入版本号
from version import __version__