A large amount of work has already been undertaken to move ETS projects from on_trait_change to observe. This includes replacing use of the static trait change handlers such as _*_changed and the use of depends_on in Property traits.
We would like to migrate all of ETS if possible but given the time/resource constraints, we are going to go with the 90%-10% option here. Given our experience, we know that 90% of the work is more-or-less straightforward whereas 10% of the work leads us down rabbitholes which require significant debugging/investigation. Therefore, at the moment, we are only going to attack the easy/straightforward 90% and ignore the hard/difficult 10% of changes.
Note also that in some packages, this work was completed but a release hasn't been published so the changes aren't visible to the users. We need to expose the changes to the users in order to catch any issues potentially not caught by the testsuites.
A large amount of work has already been undertaken to move ETS projects from
on_trait_changetoobserve. This includes replacing use of the static trait change handlers such as_*_changedand the use ofdepends_oninPropertytraits.We would like to migrate all of ETS if possible but given the time/resource constraints, we are going to go with the 90%-10% option here. Given our experience, we know that 90% of the work is more-or-less straightforward whereas 10% of the work leads us down rabbitholes which require significant debugging/investigation. Therefore, at the moment, we are only going to attack the easy/straightforward 90% and ignore the hard/difficult 10% of changes.
Note also that in some packages, this work was completed but a release hasn't been published so the changes aren't visible to the users. We need to expose the changes to the users in order to catch any issues potentially not caught by the testsuites.
depends_onis used a lot, especially in the examples, static@on_trait_changeand dynamicon_trait_changeare used heavily and so are the_*_changedhandlers in Traits_*_changedmethods in PyFace.property_depends_on, dynamic uses ofon_trait_changeand a number of static change handlers i.e._*_changedmethods in TraitsUI@on_trait_changedecorator and dynamic use ofon_trait_changealong with a few_*_changedhandlers in Envisage.on_trait_changeand a few_*_changedmethods in AppToolson_trait_changeand a large number of_*_changedmethods in Enabledepends_on, a few uses ofon_trait_changeand a large number of_*_changedmethods in Chaco