diff -r 8c3d033e5044 -r 0cdead130a81 eric6/Plugins/PluginWizardQFileDialog.py --- a/eric6/Plugins/PluginWizardQFileDialog.py Sat Jun 20 17:36:20 2020 +0200 +++ b/eric6/Plugins/PluginWizardQFileDialog.py Sun Jun 21 18:26:12 2020 +0200 @@ -48,8 +48,8 @@ super(FileDialogWizard, self).__init__(ui) self.__ui = ui - # PyQt4 or PyQt5 - self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([45])") + # PyQt5 + self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([5])") def activate(self): """ @@ -124,7 +124,7 @@ @param editor reference to the current editor @type Editor @param variant variant of code to be generated - (-1 = E5FileDialog, 0 = unknown, 4 = PyQt4, 5 = PyQt5) + (-1 = E5FileDialog, 0 = unknown, 5 = PyQt5) @type int @return the generated code (string) """ @@ -166,7 +166,7 @@ # unknown dialogVariant = 0 else: - # PyQt4 or PyQt5 + # PyQt5 dialogVariant = int(match.group(1)) elif variant == "E5FileDialog": # E5FileDialog