NodesPaletteWidget
|
The |
- 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
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.
Get the tab widget.
update
()Update and refresh the node palette widget.