Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- node
The node that we are monitoring.
node = Any
- nodes_changed
Fired when child nodes in the node that we are monitoring have changed in some way that affects their appearance but NOT their structure.
nodes_changed = Event(NodeEvent)
- nodes_inserted
Fired when child nodes have been inserted into the node that we are monitoring.
nodes_inserted = Event(NodeEvent)
- nodes_removed
Fired when child nodes have been removed from the node that we are monitoring.
nodes_removed = Event(NodeEvent)
- nodes_replaced
Fired when child nodes have been replaced in the node that we are monitoring.
nodes_replaced = Event(NodeEvent)
- structure_changed
Fired when the structure of the node that we are monitoring has changed DRASTICALLY (i.e., we do not have enough information to make individual changes/inserts/removals).
structure_changed = Event(NodeEvent)
Method summary
- fire_nodes_changed(self, children = [ ])
- fire_nodes_inserted(self, children, index = -Const(1))
- fire_nodes_removed(self, children)
- fire_nodes_replaced(self, old_children, new_children)
- fire_structure_changed(self)
- start(self)
- stop(self)
Methods
- fire_nodes_changed(self, children = [ ])
Fires the nodes changed event.
- fire_nodes_inserted(self, children, index = -Const(1))
Fires the nodes inserted event.
If the index is -1 it means the nodes were appended.
fixme: The tree and model should probably have an 'appended' event.
- fire_nodes_removed(self, children)
Fires the nodes removed event.
- fire_nodes_replaced(self, old_children, new_children)
Fires the nodes replaced event.
- fire_structure_changed(self)
Fires the structure changed event.
- start(self)
Start listening to changes to the node.
- stop(self)
Stop listening to changes to the node.