envisage.i_plugin module¶
The plugin interface.
- class envisage.i_plugin.IPlugin(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]¶
Bases:
Interface
The plugin interface.
- activator = Instance(IPluginActivator)¶
The activator used to start and stop the plugin.
- application = Instance("envisage.api.IApplication")¶
The application that the plugin is part of.
- home = Str¶
The name of a directory (created for you) that the plugin can read and write to at will.
- id = Str¶
The plugin’s unique identifier.
Where ‘unique’ technically means ‘unique within the plugin manager’, but since the chances are that you will want to include plugins from external sources, this really means ‘globally unique’! Using the Python package path might be useful here. e.g. ‘envisage’.
- name = Str¶
The plugin’s name (suitable for displaying to the user).