src/eric7/Plugins/PluginWizardQFileDialog.py

branch
eric7
changeset 10437
2f70ca07f0af
parent 10331
c1a2ff7e3575
child 10439
21c28b0f9e41
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
42 42
43 def __init__(self, ui): 43 def __init__(self, ui):
44 """ 44 """
45 Constructor 45 Constructor
46 46
47 @param ui reference to the user interface object (UI.UserInterface) 47 @param ui reference to the user interface object
48 @type UserInterface
48 """ 49 """
49 super().__init__(ui) 50 super().__init__(ui)
50 self.__ui = ui 51 self.__ui = ui
51 52
52 # PyQt5/PyQt6 53 # PyQt5/PyQt6
54 55
55 def activate(self): 56 def activate(self):
56 """ 57 """
57 Public method to activate this plugin. 58 Public method to activate this plugin.
58 59
59 @return tuple of None and activation status (boolean) 60 @return tuple of None and activation status
61 @rtype bool
60 """ 62 """
61 self.__initActions() 63 self.__initActions()
62 self.__initMenu() 64 self.__initMenu()
63 65
64 return None, True 66 return None, True
137 @param editor reference to the current editor 139 @param editor reference to the current editor
138 @type Editor 140 @type Editor
139 @param variant variant of code to be generated 141 @param variant variant of code to be generated
140 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6) 142 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6)
141 @type int 143 @type int
142 @return the generated code (string) 144 @return the generated code
145 @rtype str
143 """ 146 """
144 from eric7.Plugins.WizardPlugins.FileDialogWizard import FileDialogWizardDialog 147 from eric7.Plugins.WizardPlugins.FileDialogWizard import FileDialogWizardDialog
145 148
146 dlg = FileDialogWizardDialog.FileDialogWizardDialog(variant, None) 149 dlg = FileDialogWizardDialog.FileDialogWizardDialog(variant, None)
147 if dlg.exec() == QDialog.DialogCode.Accepted: 150 if dlg.exec() == QDialog.DialogCode.Accepted:

eric ide

mercurial