eric6/Plugins/PluginWizardQFileDialog.py

changeset 7635
0cdead130a81
parent 7360
9190402e4505
child 7759
51aa6c6b66f7
--- 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

eric ide

mercurial