src/eric7/Plugins/PluginWizardQColorDialog.py

branch
eric7
changeset 10437
2f70ca07f0af
parent 10331
c1a2ff7e3575
child 10439
21c28b0f9e41
equal deleted inserted replaced
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) and a success flag (boolean) 110 @type Editor
111 @return the generated code and a success flag
112 @rtype tuple of (str, bool)
109 """ 113 """
110 from eric7.Plugins.WizardPlugins.ColorDialogWizard import ( 114 from eric7.Plugins.WizardPlugins.ColorDialogWizard import (
111 ColorDialogWizardDialog, 115 ColorDialogWizardDialog,
112 ) 116 )
113 117

eric ide

mercurial