apptools.preferences.preferences_helper module

An object that can be initialized from a preferences node.

class apptools.preferences.preferences_helper.PreferencesHelper(**traits)[source]

Bases: traits.has_traits.HasTraits

A base class for objects that can be initialized from a preferences node.

Additional traits defined on subclasses will be listened to. Changes are then synchronized with the preferences. Note that mutations on nested containers e.g. List(List(Str)) cannot be synchronized and should be avoided.