NodesPaletteWidget

NodeGraphQt.NodesPaletteWidget([parent, ...])

The NodeGraphQt.NodesPaletteWidget is a widget for displaying all registered nodes from the node graph in a grid layout with this widget a user can create nodes by dragging and dropping.

class NodeGraphQt.NodesPaletteWidget(parent=None, node_graph=None)

The NodeGraphQt.NodesPaletteWidget is a widget for displaying all registered nodes from the node graph in a grid layout with this widget a user can create nodes by dragging and dropping.

Implemented on NodeGraphQt: v0.1.7
Inheritance diagram of NodeGraphQt.NodesPaletteWidget
../_images/nodes_palette.png
1from NodeGraphQt import NodeGraph, NodesPaletteWidget
2
3# create node graph.
4graph = NodeGraph()
5
6# create nodes palette widget.
7nodes_palette = NodesPaletteWidget(parent=None, node_graph=graph)
8nodes_palette.show()
Parameters:
  • parent (QtWidgets.QWidget) – parent of the new widget.

  • node_graph (NodeGraphQt.NodeGraph) – node graph.

Methods:

set_category_label(category, label)

Override tab label for a node category tab.

tab_widget()

Get the tab widget.

update()

Update and refresh the node palette widget.

set_category_label(category, label)

Override tab label for a node category tab.

Parameters:
  • category (str) – node identifier category eg. "nodes.widgets"

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

tab_widget()

Get the tab widget.

Returns:

tab widget.

Return type:

QtWidgets.QTabWidget

update()

Update and refresh the node palette widget.