81 |
81 |
82 self.iconFilePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) |
82 self.iconFilePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) |
83 self.iconFilePicker.setDefaultDirectory(self.__project.getProjectPath()) |
83 self.iconFilePicker.setDefaultDirectory(self.__project.getProjectPath()) |
84 if isMacPlatform(): |
84 if isMacPlatform(): |
85 self.iconFilePicker.setFilters( |
85 self.iconFilePicker.setFilters( |
86 self.tr("Icon Files (*.icns);;" "All Files (*)") |
86 self.tr("Icon Files (*.icns);;All Files (*)") |
87 ) |
87 ) |
88 elif isWindowsPlatform(): |
88 elif isWindowsPlatform(): |
89 self.iconFilePicker.setFilters( |
89 self.iconFilePicker.setFilters( |
90 self.tr( |
90 self.tr("Icon Files (*.ico);;Executable Files (*.exe);;All Files (*)") |
91 "Icon Files (*.ico);;" "Executable Files (*.exe);;" "All Files (*)" |
|
92 ) |
|
93 ) |
91 ) |
94 |
92 |
95 # disable platform specific tabs |
93 # disable platform specific tabs |
96 self.tabWidget.setTabEnabled( |
94 self.tabWidget.setTabEnabled( |
97 self.tabWidget.indexOf(self.windowsMacTab), |
95 self.tabWidget.indexOf(self.windowsMacTab), |
317 enable = False |
315 enable = False |
318 |
316 |
319 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
317 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
320 |
318 |
321 @pyqtSlot(bool) |
319 @pyqtSlot(bool) |
322 def on_selectedScriptButton_toggled(self, checked): |
320 def on_selectedScriptButton_toggled(self, checked): # noqa: U100 |
323 """ |
321 """ |
324 Private slot to handle changes of the radio button state. |
322 Private slot to handle changes of the radio button state. |
325 |
323 |
326 @param checked state of the radio button |
324 @param checked state of the radio button |
327 @type bool |
325 @type bool |
328 """ |
326 """ |
329 self.__updateOkButton() |
327 self.__updateOkButton() |
330 |
328 |
331 @pyqtSlot(str) |
329 @pyqtSlot(str) |
332 def on_inputFilePicker_textChanged(self, txt): |
330 def on_inputFilePicker_textChanged(self, txt): # noqa: U100 |
333 """ |
331 """ |
334 Private slot to handle changes of the input file. |
332 Private slot to handle changes of the input file. |
335 |
333 |
336 @param txt text of the file edit |
334 @param txt text of the file edit |
337 @type str |
335 @type str |