10436:f6881d10e995 | 10437:2f70ca07f0af |
---|---|
46 | 46 |
47 def __init__(self, ui): | 47 def __init__(self, ui): |
48 """ | 48 """ |
49 Constructor | 49 Constructor |
50 | 50 |
51 @param ui reference to the user interface object (UI.UserInterface) | 51 @param ui reference to the user interface object |
52 @type UserInterface | |
52 """ | 53 """ |
53 super().__init__(ui) | 54 super().__init__(ui) |
54 self.__ui = ui | 55 self.__ui = ui |
55 self.__action = None | 56 self.__action = None |
56 | 57 |
62 | 63 |
63 def activate(self): | 64 def activate(self): |
64 """ | 65 """ |
65 Public method to activate this plug-in. | 66 Public method to activate this plug-in. |
66 | 67 |
67 @return tuple of None and activation status (boolean) | 68 @return tuple of None and activation status |
69 @rtype bool | |
68 """ | 70 """ |
69 self.__initAction() | 71 self.__initAction() |
70 self.__initMenu() | 72 self.__initMenu() |
71 | 73 |
72 return None, True | 74 return None, True |
116 | 118 |
117 def __callForm(self): | 119 def __callForm(self): |
118 """ | 120 """ |
119 Private method to display a dialog and get the code. | 121 Private method to display a dialog and get the code. |
120 | 122 |
121 @return generated code (string), the plug-in package name (string) | 123 @return generated code, the plug-in package name and a flag indicating success |
122 and a flag indicating success (boolean) | 124 @rtype tuple of (str, str, bool) |
123 """ | 125 """ |
124 from eric7.Plugins.WizardPlugins.EricPluginWizard.PluginWizardDialog import ( | 126 from eric7.Plugins.WizardPlugins.EricPluginWizard.PluginWizardDialog import ( |
125 PluginWizardDialog, | 127 PluginWizardDialog, |
126 ) | 128 ) |
127 | 129 |