spark.graph_editor.ui.nodes_panel#
Classes#
Dockable panel that shows a summary of the nodes in the graph. |
|
Constructs the nodes list associated with the SparkNodeGraph. |
|
QWidget associated with each entry in the list. |
Module Contents#
- class spark.graph_editor.ui.nodes_panel.NodesPanel(node_graph, name='Nodes', **kwargs)[source]#
Bases:
spark.graph_editor.widgets.dock_panel.QDockPanelDockable panel that shows a summary of the nodes in the graph.
- Parameters:
node_graph (spark.graph_editor.models.graph.SparkNodeGraph)
name (str)
- class spark.graph_editor.ui.nodes_panel.QNodeList(node_graph, **kwargs)[source]#
Bases:
PySide6.QtWidgets.QWidgetConstructs the nodes list associated with the SparkNodeGraph.
- Parameters:
node_graph (spark.graph_editor.models.graph.SparkNodeGraph)
- addWidget(widget)[source]#
Add a widget to the central content widget’s layout.
- Parameters:
widget (PySide6.QtWidgets.QWidget)
- Return type:
None
- on_selection_update(new_selection, prev_selection)[source]#
- Parameters:
new_selection (list[spark.graph_editor.models.nodes.AbstractNode])
prev_selection (list[spark.graph_editor.models.nodes.AbstractNode])
- Return type:
None