7 Module implementing the Start Program dialog. |
7 Module implementing the Start Program dialog. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
|
12 from PyQt6.QtCore import Qt |
12 from PyQt6.QtWidgets import QComboBox, QDialog, QDialogButtonBox, QInputDialog |
13 from PyQt6.QtWidgets import QComboBox, QDialog, QDialogButtonBox, QInputDialog |
13 |
14 |
14 from eric7 import Preferences |
15 from eric7 import Preferences |
15 from eric7.EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
17 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
221 self.ui.multiprocessNoDebugCombo.addItems(multiprocessNoDebugHistory) |
222 self.ui.multiprocessNoDebugCombo.addItems(multiprocessNoDebugHistory) |
222 self.ui.multiprocessNoDebugCombo.setCurrentIndex(0) |
223 self.ui.multiprocessNoDebugCombo.setCurrentIndex(0) |
223 |
224 |
224 if dialogType == 3: # start coverage or profile dialog |
225 if dialogType == 3: # start coverage or profile dialog |
225 self.ui.eraseCheckBox.setChecked(True) |
226 self.ui.eraseCheckBox.setChecked(True) |
|
227 |
|
228 self.ui.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setFocus( |
|
229 Qt.FocusReason.OtherFocusReason |
|
230 ) |
226 |
231 |
227 self.__clearHistoryLists = False |
232 self.__clearHistoryLists = False |
228 self.__historiesModified = False |
233 self.__historiesModified = False |
229 |
234 |
230 msh = self.minimumSizeHint() |
235 msh = self.minimumSizeHint() |