API Reference for Enthought Tool Suite 2.7.1
Defines the Item class, which is used to represent a single item within a Traits-based user interface.
Pattern of all digits
all_digits = re.compile('\\d+')
Reference to an EditorFactory
ItemEditor = Instance(EditorFactory, allow_none = True)
Amount of padding to add around item
Padding = Range(-Const(15), 15, 0, desc = 'amount of padding to add around item')
Pattern for finding size infomation embedded in an item description
size_pat = re.compile('^(.*)<(.*)>(.*)$', (re.MULTILINE | re.DOTALL))
A pre-defined spring for convenience
spring = Spring()
Pattern for finding tooltip infomation embedded in an item description
tooltip_pat = re.compile('^(.*)`(.*)`(.*)$', (re.MULTILINE | re.DOTALL))
| Local name | Refers to |
|---|---|
| Callable | enthought.traits.traits.Callable |
| Constant | enthought.traits.traits.Constant |
| container_delegate | enthought.traits.ui.ui_traits.container_delegate |
| Delegate | enthought.traits.traits.Delegate |
| EditorFactory | enthought.traits.ui.editor_factory.EditorFactory |
| false | enthought.traits.traits.false |
| find | string.find |
| Instance | enthought.traits.traits.Instance |
| Int | enthought.traits.traits.Int |
| Range | enthought.traits.traits.Range |
| re | re |
| rfind | string.rfind |
| Str | enthought.traits.traits.Str |
| user_name_for | enthought.traits.trait_base.user_name_for |
| ViewSubElement | enthought.traits.ui.view_element.ViewSubElement |
Copyright © 2002-2008 Enthought, Inc.