src/eric7/Plugins/PluginWizardQFileDialog.py

branch
eric7
changeset 11217
856628e8a303
parent 11148
15e30f0c76a8
--- a/src/eric7/Plugins/PluginWizardQFileDialog.py	Sun Apr 13 14:46:18 2025 +0200
+++ b/src/eric7/Plugins/PluginWizardQFileDialog.py	Sun Apr 13 15:53:14 2025 +0200
@@ -50,8 +50,8 @@
         super().__init__(ui)
         self.__ui = ui
 
-        # PyQt5/PyQt6
-        self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([56])")
+        # PyQt6
+        self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([6])")
 
     def activate(self):
         """
@@ -141,7 +141,7 @@
         @param editor reference to the current editor
         @type Editor
         @param variant variant of code to be generated
-            (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6)
+            (-1 = EricFileDialog, 0 = unknown, 6 = PyQt6)
         @type int
         @return the generated code
         @rtype str
@@ -187,7 +187,7 @@
                     # unknown
                     dialogVariant = 0
                 else:
-                    # PyQt5/PyQt6
+                    # PyQt6
                     dialogVariant = int(match.group(1))
             else:
                 # EricFileDialog

eric ide

mercurial