API Reference for Enthought Tool Suite 2.7.1
Defines the View class used to represent the structural content of a Traits-based user interface.
apply_trait = Bool(True, desc = "whether to add an 'Apply' button to the view")
cancel_trait = Bool(True, desc = "whether to add a 'Cancel' button to the view")
The result that should be returned if the user clicks the window or dialog close button or icon
close_result_trait = 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_trait = Instance(Group, desc = 'the content of the view')
Reference to a Handler object trait
handler_trait = Any(desc = 'the handler for the view')
height_trait = Float(-Const(1000000.0), desc = 'the height of the view window')
help_trait = Bool(True, desc = "whether to add a 'Help' button to the view")
Name of the view trait
id_trait = Str(desc = 'the name of the view')
The valid categories of imported elements that can be dragged into the view
imports_trait = List(Str, desc = 'the categories of elements that can be dragged into the view')
User interface 'kind' trait. The values have the following meanings:
kind_trait = Trait('live', TraitPrefixList('panel', 'subpanel', 'modal', 'nonmodal', 'livemodal', 'live', '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
model_view_trait = Callable(desc = 'the factory function for converting amodel into a model/view object')
ok_trait = Bool(True, desc = "whether to add an 'OK' button to the view")
on_apply_trait = Callable(desc = 'the routine to call when modal changes are applied or reverted')
Is the dialog window is resizable?
resizable_trait = Bool(False, desc = 'whether dialog can be resized or not')
revert_trait = Bool(True, desc = "whether to add a 'Revert' button to the view")
Is the view scrollable?
scrollable_trait = Bool(False, desc = 'whether view should be scrollable or not')
Dialog window title trait
title_trait = Str(desc = 'the window title for the view')
undo_trait = Bool(True, desc = "whether to add 'Undo' and 'Redo' buttons to the view")
width_trait = Float(-Const(1000000.0), desc = 'the width of the view window')
x_trait = Float(-Const(1000000.0), desc = 'the x coordinate of the view window')
y_trait = Float(-Const(1000000.0), desc = 'the y coordinate of the view window')
Copyright © 2002-2008 Enthought, Inc.