apptools.preferences.preference_binding module

A binding between a trait on an object and a preference value.

class apptools.preferences.preference_binding.PreferenceBinding(**traits)[source]

Bases: HasTraits

A binding between a trait on an object and a preference value.

apptools.preferences.preference_binding.bind_preference(obj, trait_name, preference_path, preferences=None)[source]

Create a new preference binding.