Inherits from
- Editor: enthought.traits.ui.wx.editor.Editor
Attributes
- click
The event fired when a tree node is clicked on:
click = Event
- dclick
The event fired when a tree node is double-clicked on:
dclick = Event
- scrollable
Is the tree editor is scrollable? This value overrides the default.
scrollable = True
- selected
The currently selected object
selected = Any
- selection
Allows an external agent to set the tree selection
selection = Event
- veto
The event fired when the application wants to veto an operation:
veto = Event
Inherited from base classes
Traits
Inherited from base classes
Method summary
- add_to_menu(self, menu_item)
- add_to_toolbar(self, toolbar_item)
- can_add_to_menu(self, action)
- can_add_to_toolbar(self, action)
- dispose(self)
- eval_when(self, condition, object, trait)
- expand_all(self)
- expand_levels(self, nid, levels, expand = True)
- get_error_control(self)
- get_node(self, object, name = '')
- get_object(self, nid)
- get_parent(self, object, name = '')
- init(self, parent)
- perform(self, action, action_event = None)
- restore_prefs(self, prefs)
- save_prefs(self)
- update_editor(self)
- update_object(self, event)
- wx_drag_over(self, x, y, data, drag_result)
- wx_dropped_on(self, x, y, data, drag_result)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __init__(self, parent, **traits)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __set_value(self, value)
- __setstate__(self, state, trait_change_notify = True)
- 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)
- get_undo_item(self, object, name, old_value, new_value)
- has_traits_interface(self, *interfaces)
- log_change(self, undo_factory, *undo_args)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- parse_extended_name(self, name)
- prepare(self, parent)
- 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)
- string_value(self, value, format_func = None)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- sync_value(self, user_name, editor_name, mode = 'both', is_list = False)
- 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(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- add_to_toolbar(self, toolbar_item)
Adds a toolbar item to the toolbar being constructed.
- can_add_to_toolbar(self, action)
Returns whether the toolbar action should be defined in the user interface.
- dispose(self)
Disposes of the contents of an editor.
- eval_when(self, condition, object, trait)
Evaluates a condition within a defined context, and sets a specified object trait based on the result, which is assumed to be a Boolean.
- expand_all(self)
Expands all nodes, starting from the selected node.
- expand_levels(self, nid, levels, expand = True)
Expands from the specified node the specified number of sub-levels.
- get_error_control(self)
Returns the editor's control for indicating error status.
- get_node(self, object, name = '')
Returns the node associated with a specified object.
- get_object(self, nid)
Gets the object associated with a specified node.
- get_parent(self, object, name = '')
Returns the object that is the immmediate parent of a specified object in the tree.
- init(self, parent)
Finishes initializing the editor by creating the underlying toolkit widget.
- perform(self, action, action_event = None)
Performs the action described by a specified Action object.
- restore_prefs(self, prefs)
Restores any saved user preference information associated with the editor.
- save_prefs(self)
Returns any user preference information associated with the editor.
- update_editor(self)
Updates the editor when the object trait changes externally to the editor.
- update_object(self, event)
Handles the user entering input data in the edit control.
- wx_drag_over(self, x, y, data, drag_result)
Handles a Python object being dragged over the tree.
- wx_dropped_on(self, x, y, data, drag_result)
Handles a Python object being dropped on the tree.