API Reference for Enthought Tool Suite 3.2.0
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 an 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 |
|---|---|
| Bool | enthought.traits.trait_types.Bool |
| cached_property | enthought.traits.has_traits.cached_property |
| Callable | enthought.traits.trait_types.Callable |
| Constant | enthought.traits.trait_types.Constant |
| convert_theme | enthought.traits.ui.ui_traits.convert_theme |
| Delegate | enthought.traits.trait_types.Delegate |
| EditorFactory | enthought.traits.ui.editor_factory.EditorFactory |
| find | string.find |
| Float | enthought.traits.trait_types.Float |
| Instance | enthought.traits.trait_types.Instance |
| Property | enthought.traits.traits.Property |
| Range | enthought.traits.trait_types.Range |
| re | re |
| rfind | string.rfind |
| Str | enthought.traits.trait_types.Str |
| Undefined | enthought.traits.trait_base.Undefined |
| user_name_for | enthought.traits.trait_base.user_name_for |
| ViewSubElement | enthought.traits.ui.view_element.ViewSubElement |
© Copyright 2002-2009 Enthought, Inc.