pyface.tree.node_manager module

The node manager looks after a collection of node types.

class pyface.tree.node_manager.NodeManager(**traits)[source]

Bases: HasPrivateTraits

The node manager looks after a collection of node types.

add_node_type(node_type)[source]

Adds a new node type to the manager.

get_node_type(node)[source]

Returns the node’s type.

Returns None if none of the manager’s node types recognize the node.

get_key(node)[source]

Generates a unique key for a node.

In this case, ‘unique’ means unqiue within the node manager.