NodesTreeWidget

NodeGraphQt.NodesTreeWidget([parent, node_graph])

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.

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.

Inheritance diagram of NodeGraphQt.NodesTreeWidget
../_images/nodes_tree.png
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.

set_category_label(category, label)

Override the label for a node category root item.

../_images/nodes_tree_category_label.png
Parameters:
  • category (str) – node identifier category eg. "nodes.widgets"

  • label (str) – custom display label. eg. "Node Widgets"

update()

Update and refresh the node tree widget.