MCPcopy Index your code
hub / github.com/BasicProtein/AugmentCode-Free / __init__

Method __init__

gui_qt6/main_window.py:24–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 """PyQt6主窗口"""
23
24 def __init__(self):
25 super().__init__()
26
27 # 初始化管理器
28 self.config_manager = get_config_manager()
29 self.language_manager = get_language_manager(self.config_manager)
30 self.font_manager = get_font_manager()
31
32 # 页面堆栈
33 self.stacked_widget = QStackedWidget()
34 self.setCentralWidget(self.stacked_widget)
35
36 # 页面实例
37 self.welcome_page = None
38 self.main_page = None
39
40 # 设置窗口
41 self._setup_window()
42
43 # 应用样式
44 self._apply_styles()
45
46 # 显示初始页面
47 self._show_initial_page()
48
49 def _setup_window(self):
50 """设置窗口属性"""

Callers

nothing calls this directly

Calls 6

_setup_windowMethod · 0.95
_apply_stylesMethod · 0.95
_show_initial_pageMethod · 0.95
get_config_managerFunction · 0.90
get_language_managerFunction · 0.90
get_font_managerFunction · 0.85

Tested by

no test coverage detected