API Reference for Enthought Tool Suite 3.0.1
Defines common traits used within the traits.ui package.
A button to add to a view:
a_button = Trait('', Str, Instance('enthought.traits.ui.menu.Action'))
The alignment of text within a control:
Alignment = Enum('default', 'left', 'center', 'right')
View trait specified by name or instance:
AView = Any
The set of buttons to add to the view:
buttons_trait = List(a_button, desc = 'the action buttons to add to the bottom of the view')
The category of elements dragged out of the view:
export_trait = Str(desc = 'the category of elements dragged out of the view')
image_bitmap_cache = { }
image_resource_cache = { }
The default notebook tab image to use:
image_trait = Instance('enthought.pyface.image_resource.ImageResource', desc = 'the image to be displayed on notebook tabs')
Group layout trait:
Layout = Trait('normal', TraitPrefixList('normal', 'split', 'tabbed', 'flow', 'fold'))
Trait for the default object being edited:
object_trait = Expression('object')
Orientation trait:
Orientation = Trait('vertical', TraitPrefixList('vertical', 'horizontal'))
The position of an image relative to its associated text:
Position = Enum('left', 'right', 'above', 'below')
Types that represent sequences:
SequenceTypes = (tuple, list)
The spacing between two items:
Spacing = Range(-Const(32), 32, 3)
Converts an ImageResource to a bitmap using a cache.
Converts a specified value to an ImageResource if possible.
Converts a specified value to a Theme if possible.
| Local name | Refers to |
|---|---|
| Any | enthought.traits.trait_types.Any |
| Delegate | enthought.traits.trait_types.Delegate |
| Enum | enthought.traits.trait_types.Enum |
| Expression | enthought.traits.trait_types.Expression |
| Float | enthought.traits.trait_types.Float |
| get_resource_path | enthought.traits.trait_base.get_resource_path |
| HasStrictTraits | enthought.traits.has_traits.HasStrictTraits |
| Instance | enthought.traits.trait_types.Instance |
| join | os.path.join |
| List | enthought.traits.trait_types.List |
| Range | enthought.traits.trait_types.Range |
| Str | enthought.traits.trait_types.Str |
| Trait | enthought.traits.traits.Trait |
| TraitError | enthought.traits.trait_errors.TraitError |
| TraitPrefixList | enthought.traits.trait_handlers.TraitPrefixList |
| TraitType | enthought.traits.trait_handlers.TraitType |
© Copyright 2002-2008 Enthought, Inc.