API Reference for Enthought Tool Suite 2.7.1
BOTTOM_LEFT = (BOTTOM | LEFT)
BOTTOM_RIGHT = (BOTTOM | RIGHT)
Alignment values:
CENTER = 0
A Contact/ContactManager/Track category:
ContactCategory = Str('default')
A Contact/ContactManager/Track group:
ContactGroup = Str('default')
Position of a label relative to its associated contact and containing component:
ContactLabelPosition = Trait('outside top left', { Const('top left') : Name('TOP_LEFT'), Const('top') : Name('TOP'), Const('top right') : Name('TOP_RIGHT'), Const('left') : Name('LEFT'), Const('center') : Name('CENTER'), Const('right') : Name('RIGHT'), Const('bottom left') : Name('BOTTOM_LEFT'), Const('bottom') : Name('BOTTOM'), Const('bottom right') : Name('BOTTOM_RIGHT'), Const('inside top left') : Bitor([Name('INSIDE'), Name('TOP_LEFT')]), Const('inside top') : Bitor([Name('INSIDE'), Name('TOP')]), Const('inside top right') : Bitor([Name('INSIDE'), Name('TOP_RIGHT')]), Const('inside left') : Bitor([Name('INSIDE'), Name('LEFT')]), Const('inside center') : Bitor([Name('INSIDE'), Name('CENTER')]), Const('inside right') : Bitor([Name('INSIDE'), Name('RIGHT')]), Const('inside bottom left') : Bitor([Name('INSIDE'), Name('BOTTOM_LEFT')]), Const('inside bottom') : Bitor([Name('INSIDE'), Name('BOTTOM')]), Const('inside bottom right') : Bitor([Name('INSIDE'), Name('BOTTOM_RIGHT')]), Const('outside top left') : Bitor([Name('OUTSIDE'), Name('TOP_LEFT')]), Const('outside top') : Bitor([Name('OUTSIDE'), Name('TOP')]), Const('outside top right') : Bitor([Name('OUTSIDE'), Name('TOP_RIGHT')]), Const('outside left') : Bitor([Name('OUTSIDE'), Name('LEFT')]), Const('outside center') : Bitor([Name('OUTSIDE'), Name('CENTER')]), Const('outside right') : Bitor([Name('OUTSIDE'), Name('RIGHT')]), Const('outside bottom left') : Bitor([Name('OUTSIDE'), Name('BOTTOM_LEFT')]), Const('outside bottom') : Bitor([Name('OUTSIDE'), Name('BOTTOM')]), Const('outside bottom right') : Bitor([Name('OUTSIDE'), Name('BOTTOM_RIGHT')]) })
Position of a contact relative to its containing component:
ContactPosition = Trait('left', { Const('top left') : Name('TOP_LEFT'), Const('top') : Name('TOP'), Const('top right') : Name('TOP_RIGHT'), Const('left') : Name('LEFT'), Const('center') : Name('CENTER'), Const('right') : Name('RIGHT'), Const('bottom left') : Name('BOTTOM_LEFT'), Const('bottom') : Name('BOTTOM'), Const('bottom right') : Name('BOTTOM_RIGHT') })
The current state of a Contact:
ContactState = Enum('unconnected', 'connected', 'fully_connected', 'drag_pending', 'drop_pending')
RGBA Color using the Enable RGBA color editor:
ergba_color_editor = EnableRGBAColorEditor(mode = 'hsv')
ERGBAColor = RGBAColor(editor = ergba_color_editor)
Position of an inner component relative to the outer component:
InnerComponentPosition = Trait('center', { Const('top') : Name('TOP'), Const('center') : Name('CENTER'), Const('bottom') : Name('BOTTOM') })
INSIDE = 64
An (x,y) offset:
OffsetXY = Tuple(Int, Int, cols = 2, labels = [ 'X', 'Y' ])
OUTSIDE = 128
Selection bacground and border colors:
SelectionBackgroundColor = ERGBAColor((0.0, 0.69999999999999996, 0.20000000000000001, 0.20000000000000001))
SelectionBorderColor = ERGBAColor((0.0, 0.0, 0.0, 0.40000000000000002))
A (dx,dy) size:
SizeXY = Tuple(Int, Int, cols = 2, labels = [ 'Width', 'Height' ])
Delegate a trait to the object's 'style' attribute:
StyleDelegate = Delegate('style')
TOP_LEFT = (TOP | LEFT)
TOP_RIGHT = (TOP | RIGHT)
| Local name | Refers to |
|---|---|
| BOTTOM | enthought.enable.base.BOTTOM |
| Delegate | enthought.traits.traits.Delegate |
| EnableRGBAColorEditor | enthought.enable.traits.ui.wx.enable_rgba_color_editor.EnableRGBAColorEditor |
| Enum | enthought.traits.traits.Enum |
| Int | enthought.traits.traits.Int |
| LEFT | enthought.enable.base.LEFT |
| RGBAColor | enthought.enable.traits.rgba_color_trait.RGBAColor |
| RIGHT | enthought.enable.base.RIGHT |
| Str | enthought.traits.traits.Str |
| TOP | enthought.enable.base.TOP |
| Trait | enthought.traits.traits.Trait |
| Tuple | enthought.traits.traits.Tuple |
Copyright © 2002-2008 Enthought, Inc.