eric6/Plugins/PluginWizardQFileDialog.py

changeset 7907
7991ea245c20
parent 7780
41420f82c0ac
child 7923
91e843545d9a
--- a/eric6/Plugins/PluginWizardQFileDialog.py	Mon Dec 21 13:36:24 2020 +0100
+++ b/eric6/Plugins/PluginWizardQFileDialog.py	Tue Dec 22 19:59:29 2020 +0100
@@ -48,7 +48,7 @@
         self.__ui = ui
         
         # PyQt5
-        self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([5])")
+        self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([56])")
 
     def activate(self):
         """
@@ -165,7 +165,7 @@
                     # unknown
                     dialogVariant = 0
                 else:
-                    # PyQt5
+                    # PyQt5/PyQt6
                     dialogVariant = int(match.group(1))
             elif variant == "E5FileDialog":
                 # E5FileDialog

eric ide

mercurial