Package aldrin :: Module interface :: Class IExtension
[show private | hide private]
[frames | no frames]

Type IExtension

object --+    
         |    
 Interface --+
             |
            IExtension


Base class for Aldrin UI extensions. Any extension should export a module which contains one class inherited from this interface.
Method Summary
  finalize(self)
Called when the extension is asked to close.
  realize(self, extensionhost)
Called when the extension is asked to realize itself.
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

finalize(self)

Called when the extension is asked to close.

You must remove your reference to the extension manager object and delete any allocated resources, if neccessary.

realize(self, extensionhost)

Called when the extension is asked to realize itself.

In this method you should store the pointer to the extension host and initialize your extension i.e. add buttons or menu entries through the extension manager.
Parameters:
extensionhost - The extension host object.
           (type={IExtensionHost} instance)

Generated by Epydoc 2.1 on Fri Nov 24 13:58:34 2006 http://epydoc.sf.net