API Reference for Enthought Tool Suite 2.7.1
Provides help for binding a trait to a preference.
Binds a trait to a preference value.
This method sets the value of obj.trait_name to the preference value and sets up a listener so that if the preference value is changed, the trait is updated. It also sets up a trait handler so that if the trait value is otherwise set, the preference listener is removed.
This method returns a binding object. If save_binding is False, the binding object must be saved by the caller; if it is True, this method saves the binding object in a private trait on obj before returning.
| Local name | Refers to |
|---|---|
| Any | enthought.traits.traits.Any |
| Bool | enthought.traits.traits.Bool |
| HasTraits | enthought.traits.has_traits.HasTraits |
| Instance | enthought.traits.traits.Instance |
| PreferenceChangedEvent | enthought.envisage.core.preferences.PreferenceChangedEvent |
| Preferences | enthought.envisage.core.preferences.Preferences |
| Str | enthought.traits.traits.Str |
Copyright © 2002-2008 Enthought, Inc.