(self, folder_icon)
| 142 | return enc_group |
| 143 | |
| 144 | def _create_icon_group(self, folder_icon): |
| 145 | icon_widget = QWidget() |
| 146 | ico_layout = QHBoxLayout() |
| 147 | ico_layout.setContentsMargins(0, 0, 0, 0) |
| 148 | |
| 149 | # Left: Icon File |
| 150 | icon_subgroup = QGroupBox('Icon File') |
| 151 | icon_sub_layout = QHBoxLayout() |
| 152 | self.ico_box = IcoComboBox() |
| 153 | ico_btn = QPushButton(folder_icon, '') |
| 154 | ico_btn.setToolTip('Select icon file') |
| 155 | ico_btn.setFixedWidth(32) |
| 156 | ico_btn.clicked.connect(lambda: self.ico_box.choose_file(self)) |
| 157 | icon_sub_layout.addWidget(self.ico_box) |
| 158 | icon_sub_layout.addWidget(ico_btn) |
| 159 | icon_subgroup.setLayout(icon_sub_layout) |
| 160 | |
| 161 | # Right: File Bundling |
| 162 | bundle_subgroup = QGroupBox('File Bundling') |
| 163 | bundle_sub_layout = QHBoxLayout() |
| 164 | self.forgery_enable_box = QCheckBox('') |
| 165 | self.forgery_enable_box.stateChanged.connect(self.on_forgery_changed) |
| 166 | self.bundle_file_box = BundleComboBox() |
| 167 | self.bundle_file_box.setFixedWidth(200) |
| 168 | self.bundle_file_box.setEnabled(False) |
| 169 | self.bundle_choose_btn = QPushButton(folder_icon, '') |
| 170 | self.bundle_choose_btn.setToolTip('Select bundle file') |
| 171 | self.bundle_choose_btn.setFixedWidth(32) |
| 172 | self.bundle_choose_btn.setEnabled(False) |
| 173 | self.bundle_choose_btn.clicked.connect(self.choose_bundle_file) |
| 174 | bundle_sub_layout.addWidget(self.bundle_file_box) |
| 175 | bundle_sub_layout.addWidget(self.bundle_choose_btn) |
| 176 | bundle_sub_layout.addWidget(self.forgery_enable_box) |
| 177 | bundle_subgroup.setLayout(bundle_sub_layout) |
| 178 | |
| 179 | ico_layout.addWidget(icon_subgroup) |
| 180 | ico_layout.addWidget(bundle_subgroup) |
| 181 | icon_widget.setLayout(ico_layout) |
| 182 | return icon_widget |
| 183 | |
| 184 | def _create_load_payload_group(self): |
| 185 | load_group = QGroupBox('Payload Loading') |
no test coverage detected