Inherits from
- TreeNodeObject: enthought.traits.ui.tree_node.TreeNodeObject
Attributes
- children_ui_list
Extend the children list with an AdderNode when a TreeEditor needs it.
children_ui_list = Property(depends_on = [ 'children' ], record = False)
- icon
The default icon.
icon = 'module.ico'
- name
The object's name.
name = Str('')
- parent
The parent of this object, i.e. self is an element of the parents children. If there is no notion of a parent/child relationship this trait is None.
parent = WeakRef(record = False)
- recorder
Our recorder.
recorder = Instance(Recorder, record = False)
- running
Is this object running as part of the mayavi pipeline.
running = Property(Bool, record = False)
- scene
The scene (RenderWindow) associated with this component.
scene = Instance(TVTKScene, record = False)
- type
The human readable type for this object
type = Str('', record = False)
- visible
Is this object visible or not.
visible = Bool(True, desc = 'if the object is visible')
Inherited from base classes
Method summary
- __deepcopy__(self, memo)
- __get_pure_state__(self)
- __getstate__(self)
- __icon_path_default(self)
- __menu_default(self)
- __module_view_default(self)
- __setstate__(self, str_state)
- __view_filename_default(self)
- add_child(self, child)
- dialog_view(self)
- remove(self)
- remove_child(self, child)
- render(self)
- start(self)
- stop(self)
- tno_append_child(self, node, child)
- tno_confirm_delete(self, node)
- tno_delete_child(self, node, index)
- tno_get_icon(self, node, is_expanded)
- tno_get_icon_path(self, node)
- tno_get_label(self, node)
- tno_get_menu(self, node)
- tno_get_view(self, node)
- tno_insert_child(self, node, index, child)
- trait_view(self, name = None, view_element = None)
Inherited from base classes
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- tno_allows_children(self, node)
- tno_can_add(self, node, add_object)
- tno_can_auto_close(self, node)
- tno_can_auto_open(self, node)
- tno_can_copy(self, node)
- tno_can_delete(self, node)
- tno_can_delete_me(self, node)
- tno_can_insert(self, node)
- tno_can_rename(self, node)
- tno_can_rename_me(self, node)
- tno_click(self, node)
- tno_dclick(self, node)
- tno_drop_object(self, node, dropped_object)
- tno_get_add(self, node)
- tno_get_children(self, node)
- tno_get_children_id(self, node)
- tno_get_drag_object(self, node)
- tno_get_name(self, node)
- tno_get_tooltip(self, node)
- tno_has_children(self, node)
- tno_is_node_for(self, node)
- tno_select(self, node)
- tno_set_label(self, node, label)
- tno_when_children_changed(self, node, listener, remove)
- tno_when_children_replaced(self, node, listener, remove)
- tno_when_label_changed(self, node, listener, remove)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- __deepcopy__(self, memo)
Method used by copy.deepcopy(). This also uses the state_pickler to work correctly.
- __get_pure_state__(self)
Method used by the state_pickler.
- __getstate__(self)
Allows standard pickle to work via the state_pickler.
- __icon_path_default(self)
- __module_view_default(self)
Try to load a view for this object.
- __setstate__(self, str_state)
Allows standard pickle to work via the state_pickler.
- __view_filename_default(self)
The name of the file that will host the view.
- add_child(self, child)
This method intelligently adds a child to this object in the MayaVi pipeline.
- dialog_view(self)
Returns a view with an icon and a title.
- remove(self)
Remove ourselves from the mayavi pipeline.
- remove_child(self, child)
Remove specified child from our children.
- render(self)
Invokes render on the scene, this in turn invokes Render on the VTK pipeline.
- start(self)
Invoked when this object is added to the mayavi pipeline.
- stop(self)
Invoked when this object is removed from the mayavi pipeline.
- tno_append_child(self, node, child)
Appends a child to the object's children.
- tno_confirm_delete(self, node)
Confirms that a specified object can be deleted or not.
- tno_delete_child(self, node, index)
- tno_get_icon(self, node, is_expanded)
- tno_get_icon_path(self, node)
- tno_get_label(self, node)
Gets the label to display for a specified object.
- tno_get_view(self, node)
Gets the View to use when editing an object.
- tno_insert_child(self, node, index, child)
Inserts a child into the object's children.
- trait_view(self, name = None, view_element = None)
Gets or sets a ViewElement associated with an object's class.
Overridden here to search for a separate file in the same directory for the view to use for this object. The view should be declared in the file named <class name>_view. If a file with this name is not found, the trait_view method on the base class will be called.