API Reference for Enthought Tool Suite 3.2.0
Defines the View class used to represent the structural content of a Traits-based user interface.
Reference to a Handler object trait:
AHandler = Any(desc = 'the handler for the view')
The KeyBindings trait:
AKeyBindings = Instance('enthought.traits.ui.key_bindings.KeyBindings', desc = 'the global key bindings for the view')
User interface 'kind' trait. The values have the following meanings:
AKind = Trait('live', TraitPrefixList('panel', 'subpanel', 'modal', 'nonmodal', 'livemodal', 'live', 'popup', 'popover', 'info', 'wizard'), desc = 'the kind of view window to create', cols = 4)
An optional model/view factory for converting the model into a viewable 'model_view' object
AModelView = Callable(desc = 'the factory function for converting a model into a model/view object')
Name of the view trait:
AnId = Str(desc = 'the name of the view')
Dialog window title trait:
ATitle = Str(desc = 'the window title for the view')
The result that should be returned if the user clicks the window or dialog close button or icon
CloseResult = Enum(None, True, False, desc = 'the result to return when the user clicks the window or dialog close button or icon')
Contents of the view trait (i.e., a single Group object):
Content = Instance(Group, desc = 'the content of the view')
Height = Float(-Const(1000000.0), desc = 'the height of the view window')
The valid categories of imported elements that can be dragged into the view:
ImportTypes = List(Str, desc = 'the categories of elements that can be dragged into the view')
Is the dialog window resizable?
IsResizable = Bool(False, desc = 'whether dialog can be resized or not')
Is the view scrollable?
IsScrollable = Bool(False, desc = 'whether view should be scrollable or not')
Apply changes handler:
OnApply = Callable(desc = 'the routine to call when modal changes are applied or reverted')
The view position and size traits:
Width = Float(-Const(1000000.0), desc = 'the width of the view window')
XCoordinate = Float(-Const(1000000.0), desc = 'the x coordinate of the view window')
YCoordinate = Float(-Const(1000000.0), desc = 'the y coordinate of the view window')
© Copyright 2002-2009 Enthought, Inc.