diff -r 8c3d033e5044 -r 0cdead130a81 eric6/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py --- a/eric6/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py Sat Jun 20 17:36:20 2020 +0200 +++ b/eric6/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py Sun Jun 21 18:26:12 2020 +0200 @@ -34,7 +34,7 @@ Constructor @param dialogVariant variant of the file dialog to be generated - (-1 = E5FileDialog, 0 = unknown, 4 = PyQt4, 5 = PyQt5) + (-1 = E5FileDialog, 0 = unknown, 5 = PyQt5) @type int @param parent parent widget @type QWidget @@ -71,7 +71,7 @@ self.pyqtComboBox.setCurrentIndex(0) self.pyqtComboBox.setEnabled(False) else: - self.pyqtComboBox.addItems(["PyQt5", "PyQt4"]) + self.pyqtComboBox.addItems(["PyQt5"]) self.setWindowTitle(self.tr("QFileDialog Wizard")) if self.__dialogVariant == 5: self.pyqtComboBox.setCurrentIndex(0) @@ -113,9 +113,9 @@ @param txt text of the selected combo box entry (string) """ - self.rfOpenFile.setEnabled(txt in ("eric", "PyQt4")) - self.rfOpenFiles.setEnabled(txt in ("eric", "PyQt4")) - self.rfSaveFile.setEnabled(txt in ("eric", "PyQt4")) + self.rfOpenFile.setEnabled(txt == "eric") + self.rfOpenFiles.setEnabled(txt == "eric") + self.rfSaveFile.setEnabled(txt == "eric") self.rOpenFileUrl.setEnabled(txt == "PyQt5") self.rOpenFileUrls.setEnabled(txt == "PyQt5") @@ -143,8 +143,6 @@ self.__dialogVariant = -1 elif txt == "PyQt5": self.__dialogVariant = 5 - elif txt == "PyQt4": - self.__dialogVariant = 4 else: # default is PyQt5 self.__dialogVariant = 5 @@ -364,7 +362,7 @@ def getCode(self, indLevel, indString): """ - Public method to get the source code for Qt4 and Qt5. + Public method to get the source code for Qt5. @param indLevel indentation level (int) @param indString string used for indentation (space or tab) (string)