API Reference for Enthought Tool Suite 3.0.1
Traits View definition file.
The view trait of the parent class is extracted from the model definition file. This file can either be exec()ed or imported. See core/base.py:Base.trait_view() for what is currently used. Using exec() allows view changes without needing to restart Mayavi, but is slower than importing.
actor_group = Group(Item(name = 'actor', style = 'custom', editor = InstanceEditor(view = View(_actor_group))), Item(name = 'mapper', style = 'custom', editor = InstanceEditor(view = View(_mapper_group))), Item(name = 'property', style = 'custom', editor = InstanceEditor(view = View(_prop_group))), show_labels = False)
The Views for this object. Pick the one that you need.
actor_view = View(actor_group, resizable = True)
texture_group = Group(Item(name = 'enable_texture'), Group(Item(name = 'texture_source_object', style = 'custom', editor = DropEditor()), Item(name = 'texture', style = 'custom', editor = InstanceEditor(view = View(_texture_group))), show_labels = True, label = 'Texture Properties', enabled_when = 'object.enable_texture', show_border = True))
texture_view = View(texture_group, resizable = True)
view = View(actor_group, texture_group, resizable = True)
VTK_VER = tvtk.Version().vtk_version
| Local name | Refers to |
|---|---|
| DropEditor | enthought.traits.ui.editors.DropEditor |
| Group | enthought.traits.ui.group.Group |
| InstanceEditor | enthought.traits.ui.editors.InstanceEditor |
| Item | enthought.traits.ui.item.Item |
| tvtk | enthought.tvtk.tvtk.tvtk |
| View | enthought.traits.ui.view.View |
© Copyright 2002-2008 Enthought, Inc.