API Reference for Enthought Tool Suite 2.7.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'))
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')
Delegate a trait value to the object's container trait
container_delegate = Delegate('container')
The default dock style to use
dock_style_trait = Enum('fixed', 'horizontal', 'vertical', 'tab', desc = 'the default docking style to use')
The category of elements dragged out of the view
export_trait = Str(desc = 'the category of elements dragged out of the view')
An identifier for the external help context
help_id_trait = Str(desc = 'the external help context identifier')
The default notebook tab image to use
image_trait = Instance('enthought.pyface.image_resource.ImageResource', desc = 'the image to be displayed on notebook tabs')
Trait for the default object being edited
object_trait = Str('object')
Types that represent sequences
SequenceTypes = (tuple, list)
Styles for user interface elements
style_trait = Trait('simple', TraitPrefixList('simple', 'custom', 'text', 'readonly'), cols = 4)
| Local name | Refers to |
|---|---|
| Any | enthought.traits.traits.Any |
| Delegate | enthought.traits.traits.Delegate |
| Enum | enthought.traits.traits.Enum |
| Instance | enthought.traits.traits.Instance |
| List | enthought.traits.traits.List |
| Str | enthought.traits.traits.Str |
| Trait | enthought.traits.traits.Trait |
| TraitPrefixList | enthought.traits.trait_handlers.TraitPrefixList |
Copyright © 2002-2008 Enthought, Inc.