设置用户界面
(self)
| 49 | self._connect_signals() |
| 50 | |
| 51 | def _setup_ui(self): |
| 52 | """设置用户界面""" |
| 53 | # 主布局 |
| 54 | main_layout = QVBoxLayout(self) |
| 55 | main_layout.setContentsMargins(30, 10, 30, 10) # 减少上下边距 |
| 56 | main_layout.setSpacing(8) # 减少间距使布局更紧凑 |
| 57 | |
| 58 | # 顶部栏 |
| 59 | self._create_top_bar(main_layout) |
| 60 | |
| 61 | # 标题区域 |
| 62 | self._create_title_section(main_layout) |
| 63 | |
| 64 | # IDE选择区域 |
| 65 | self._create_ide_section(main_layout) |
| 66 | |
| 67 | # 按钮区域 |
| 68 | self._create_buttons_section(main_layout) |
| 69 | |
| 70 | # 日志区域 |
| 71 | self._create_log_section(main_layout) |
| 72 | |
| 73 | # 状态显示 |
| 74 | self._create_status_section(main_layout) |
| 75 | |
| 76 | # 底部信息 |
| 77 | self._create_bottom_section(main_layout) |
| 78 | |
| 79 | # 添加弹性空间 |
| 80 | main_layout.addStretch() |
| 81 | |
| 82 | def _create_top_bar(self, parent_layout): |
| 83 | """创建顶部栏""" |
no test coverage detected