eric7/Plugins/PluginWizardQFileDialog.py

branch
eric7
changeset 8459
0ae07748dbe8
parent 8367
907860ca00d6
child 8881
54e42bc2437a
equal deleted inserted replaced
8458:d3bedd175c99 8459:0ae07748dbe8
45 @param ui reference to the user interface object (UI.UserInterface) 45 @param ui reference to the user interface object (UI.UserInterface)
46 """ 46 """
47 super().__init__(ui) 47 super().__init__(ui)
48 self.__ui = ui 48 self.__ui = ui
49 49
50 # PyQt5 50 # PyQt5/PyQt6
51 self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([56])") 51 self.__pyqtRe = re.compile(r"(?:import|from)\s+PyQt([56])")
52 52
53 def activate(self): 53 def activate(self):
54 """ 54 """
55 Public method to activate this plugin. 55 Public method to activate this plugin.
123 Private method to display a dialog and get the code. 123 Private method to display a dialog and get the code.
124 124
125 @param editor reference to the current editor 125 @param editor reference to the current editor
126 @type Editor 126 @type Editor
127 @param variant variant of code to be generated 127 @param variant variant of code to be generated
128 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5) 128 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6)
129 @type int 129 @type int
130 @return the generated code (string) 130 @return the generated code (string)
131 """ 131 """
132 from WizardPlugins.FileDialogWizard.FileDialogWizardDialog import ( 132 from WizardPlugins.FileDialogWizard.FileDialogWizardDialog import (
133 FileDialogWizardDialog 133 FileDialogWizardDialog

eric ide

mercurial