pyface.tree.node_type module¶
The base class for all node types.
- class pyface.tree.node_type.NodeType[source]¶
Bases:
HasPrivateTraits
The base class for all node types.
- DOCUMENT = <pyface.ui.qt.image_resource.ImageResource object>¶
- CLOSED_FOLDER = <pyface.ui.qt.image_resource.ImageResource object>¶
- OPEN_FOLDER = <pyface.ui.qt.image_resource.ImageResource object>¶
Returns the context menu for a node.
- get_copy_value(node)[source]¶
Get the value that is copied for a node.
By default, returns the node itself.
- get_paste_value(node)[source]¶
Get the value that is pasted for a node.
By default, returns the node itself.
- get_monitor(node)[source]¶
Returns a monitor that detects changes to a node.
Returns None by default, which indicates that the node is not monitored.
- has_children(node)[source]¶
Returns True if a node has children, otherwise False.
You only need to implement this method if children are allowed for the node (ie. ‘allows_children’ returns True).
- get_children(node)[source]¶
Returns the children of a node.
You only need to implement this method if children are allowed for the node.
- get_drag_value(node)[source]¶
Get the value that is dragged for a node.
By default, returns the node itself.
- get_selection_value(node)[source]¶
Get the value that is used when a node is selected.
By default the selection value is the node itself.