pyface.tree.node_monitor module

A monitor for appearance and structural changes to a node.

class pyface.tree.node_monitor.NodeMonitor[source]

Bases: HasTraits

A monitor for appearance and structural changes to a node.

start()[source]

Start listening to changes to the node.

stop()[source]

Stop listening to changes to the node.

fire_nodes_changed(children=[])[source]

Fires the nodes changed event.

fire_nodes_inserted(children, index=-1)[source]

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(children)[source]

Fires the nodes removed event.

fire_nodes_replaced(old_children, new_children)[source]

Fires the nodes replaced event.

fire_structure_changed()[source]

Fires the structure changed event.