def listener(obj, trait_name, old, new):

    listener.obj = obj
    listener.trait_name = trait_name
    listener.old = old
    listener.new = new

    return
A useful trait change handler for testing!
dataset/ETHPy150Open enthought/envisage/envisage/tests/plugin_test_case.py/listener