envisage.extension_point module¶
A trait type used to declare and access extension points.
- class envisage.extension_point.ExtensionPoint(trait_type=<class 'traits.trait_types.List'>, id=None, **metadata)[source]¶
- Bases: - TraitType- A trait type used to declare and access extension points. - Note that this is a trait type and hence does NOT have traits itself (i.e. it does not inherit from ‘HasTraits’). - connect(obj, trait_name)[source]¶
- Connect the extension point to a trait on an object. - This allows the object to react when contributions are added or removed from the extension point. - fixme: It would be nice to be able to make the connection automatically but we would need a slight tweak to traits to allow the trait type to be notified when a new instance that uses the trait type is created. 
 - static connect_extension_point_traits(obj)[source]¶
- Connect all of the ‘ExtensionPoint’ traits on an object. 
 
