NodesTreeWidget
|
The |
- class NodeGraphQt.NodesTreeWidget(parent=None, node_graph=None)
The
NodeGraphQt.NodesTreeWidget
is a widget for displaying all registered nodes from the node graph with this widget a user can create nodes by dragging and dropping.1from NodeGraphQt import NodeGraph, NodesTreeWidget 2 3# create node graph. 4graph = NodeGraph() 5 6# create node tree widget. 7nodes_tree = NodesTreeWidget(parent=None, node_graph=graph) 8nodes_tree.show()
- Parameters:
parent (QtWidgets.QWidget) – parent of the new widget.
node_graph (NodeGraphQt.NodeGraph) – node graph.
Methods:
set_category_label
(category, label)Override the label for a node category root item.
update
()Update and refresh the node tree widget.