10436:f6881d10e995 | 10437:2f70ca07f0af |
---|---|
40 | 40 |
41 def __init__(self, ui): | 41 def __init__(self, ui): |
42 """ | 42 """ |
43 Constructor | 43 Constructor |
44 | 44 |
45 @param ui reference to the user interface object (UI.UserInterface) | 45 @param ui reference to the user interface object |
46 @type UserInterface | |
46 """ | 47 """ |
47 super().__init__(ui) | 48 super().__init__(ui) |
48 self.__ui = ui | 49 self.__ui = ui |
49 | 50 |
50 def activate(self): | 51 def activate(self): |
51 """ | 52 """ |
52 Public method to activate this plugin. | 53 Public method to activate this plugin. |
53 | 54 |
54 @return tuple of None and activation status (boolean) | 55 @return tuple of None and activation status |
56 @rtype bool | |
55 """ | 57 """ |
56 self.__initAction() | 58 self.__initAction() |
57 self.__initMenu() | 59 self.__initMenu() |
58 | 60 |
59 return None, True | 61 return None, True |
103 def __callForm(self, editor): | 105 def __callForm(self, editor): |
104 """ | 106 """ |
105 Private method to display a dialog and get the code. | 107 Private method to display a dialog and get the code. |
106 | 108 |
107 @param editor reference to the current editor | 109 @param editor reference to the current editor |
108 @return the generated code (string) | 110 @type Editor |
111 @return the generated code | |
112 @rtype str | |
109 """ | 113 """ |
110 from eric7.Plugins.WizardPlugins.MessageBoxWizard import MessageBoxWizardDialog | 114 from eric7.Plugins.WizardPlugins.MessageBoxWizard import MessageBoxWizardDialog |
111 | 115 |
112 dlg = MessageBoxWizardDialog.MessageBoxWizardDialog(None) | 116 dlg = MessageBoxWizardDialog.MessageBoxWizardDialog(None) |
113 if dlg.exec() == QDialog.DialogCode.Accepted: | 117 if dlg.exec() == QDialog.DialogCode.Accepted: |