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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Causes the object to invoke a handler whenever a trait attribute
matching a specified pattern is modified, or removes the association.

Parameters
----------
handler : function
    A trait notification function for the *name* trait attribute, with
    one of the signatures described below.
name : str
    The name of the trait attribute whose value changes trigger the(more...)

src/e/n/envisage-4.4.0/envisage/tests/composite_plugin_manager_test_case.py   envisage(Download)
        added.count = 0
 
        composite_plugin_manager.on_trait_change(added, 'plugin_added')
 
        def removed(obj, trait_name, old, new):
            removed.count += 1
        removed.count = 0
 
        composite_plugin_manager.on_trait_change(removed, 'plugin_removed')

src/e/n/envisage-HEAD/envisage/tests/composite_plugin_manager_test_case.py   envisage(Download)
        added.count = 0
 
        composite_plugin_manager.on_trait_change(added, 'plugin_added')
 
        def removed(obj, trait_name, old, new):
            removed.count += 1
        removed.count = 0
 
        composite_plugin_manager.on_trait_change(removed, 'plugin_removed')