PyInstallerInterface/PyInstallerConfigDialog.py

branch
eric7
changeset 55
3794f1ca53af
parent 54
359e2d772474
child 58
8bfeb70bcdc3
equal deleted inserted replaced
54:359e2d772474 55:3794f1ca53af
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
348 """ 346 """
349 self.iconIdEdit.setEnabled(txt.endswith(".exe")) 347 self.iconIdEdit.setEnabled(txt.endswith(".exe"))
350 self.__updateOkButton() 348 self.__updateOkButton()
351 349
352 @pyqtSlot(str) 350 @pyqtSlot(str)
353 def on_iconIdEdit_textChanged(self, txt): 351 def on_iconIdEdit_textChanged(self, txt): # noqa: U100
354 """ 352 """
355 Private slot to handle changes of the icon ID. 353 Private slot to handle changes of the icon ID.
356 354
357 @param txt iconID 355 @param txt iconID
358 @type str 356 @type str

eric ide

mercurial