Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(2)  |  Derive(2)  |  Import(2)
The default implementation of the 'IPlugin' interface.

This class is intended to be subclassed for each plugin that you create.

src/e/n/envisage-4.4.0/envisage/tests/composite_plugin_manager_test_case.py   envisage(Download)
from envisage.composite_plugin_manager import CompositePluginManager
from envisage.plugin_manager import PluginManager
from envisage.plugin import Plugin
from traits.api import Bool
from traits.testing.unittest_tools import unittest
 
 
class SimplePlugin(Plugin):
        composite_plugin_manager.on_trait_change(removed, 'plugin_removed')
 
        a.add_plugin(Plugin(id='foo'))
        self.assertEqual(1, self._plugin_count(composite_plugin_manager))
 

src/e/n/envisage-HEAD/envisage/tests/composite_plugin_manager_test_case.py   envisage(Download)
from envisage.composite_plugin_manager import CompositePluginManager
from envisage.plugin_manager import PluginManager
from envisage.plugin import Plugin
from traits.api import Bool
from traits.testing.unittest_tools import unittest
 
 
class SimplePlugin(Plugin):
        composite_plugin_manager.on_trait_change(removed, 'plugin_removed')
 
        a.add_plugin(Plugin(id='foo'))
        self.assertEqual(1, self._plugin_count(composite_plugin_manager))