Changeset 56178
- Timestamp:
- 10/08/08 19:10:37 (6 weeks ago)
- Location:
- wxPython/3rdParty/Editra/src
- Files:
-
- 2 modified
-
generator.py (modified) (3 diffs)
-
plugin.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxPython/3rdParty/Editra/src/generator.py
r55443 r56178 149 149 150 150 """ 151 plugin.Plugin.__init__(self , mgr)151 plugin.Plugin.__init__(self) 152 152 153 153 # Attributes … … 513 513 514 514 """ 515 plugin.Plugin.__init__(self , plgmgr)515 plugin.Plugin.__init__(self) 516 516 517 517 # Attributes … … 774 774 775 775 """ 776 plugin.Plugin.__init__(self , mgr)776 plugin.Plugin.__init__(self) 777 777 778 778 # Attributes -
wxPython/3rdParty/Editra/src/plugin.py
r56042 r56178 179 179 return 'EdPlugin' 180 180 181 def __new__(cls, *args, **kwargs):181 def __new__(cls, pluginmgr): 182 182 """Only one instance of each plugin is allowed to exist 183 183 per manager. If an instance of this plugin has already be 184 184 initialized, that instance will be returned. If not this will 185 185 initialize a new instance of the plugin. 186 @keyword mgr: Plugin Manager instance 186 187 @return: a new class object or an existing instance if one 187 188 exists. … … 194 195 return self 195 196 196 pluginmgr = args[0]197 197 self = pluginmgr.GetPlugins().get(cls) 198 198 if self is None:
