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

All Samples(14)  |  Call(14)  |  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/extension_point_changed_test_case.py   envisage(Download)
    def test_append(self):
        """ append """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_remove(self):
        """ remove """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_assign_empty_list(self):
        """ assign empty list """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_assign_empty_list_no_event(self):
        """ assign empty list no event """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_assign_non_empty_list(self):
        """ assign non-empty list """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()

src/e/n/envisage-HEAD/envisage/tests/extension_point_changed_test_case.py   envisage(Download)
    def test_append(self):
        """ append """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_remove(self):
        """ remove """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_assign_empty_list(self):
        """ assign empty list """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_assign_empty_list_no_event(self):
        """ assign empty list no event """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()
    def test_assign_non_empty_list(self):
        """ assign non-empty list """
 
        a = PluginA(); a.on_trait_change(listener, 'x_items')
        b = PluginB()