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 Interface
  __init__(self)
Compares implemented methods and warns on discrepancies in argument count, argument names or default values.
  create_protected_proxy(self, ifaces)
Returns a protected proxy object that only exports methods defined in interfaces.
  get_interfaces(self)
Returns all supported interfaces.
    Inherited from object
  __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 Sun Feb 4 18:01:15 2007 http://epydoc.sf.net