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 nodes_panel.NodesPanel(node_graph, name='Nodes', parent=None, **kwargs)#
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)
parent (PySide6.QtWidgets.QWidget)
- node_list#
- class nodes_panel.QNodeList(node_graph, parent=None, **kwargs)#
Bases:
PySide6.QtWidgets.QWidgetConstructs the nodes list associated with the SparkNodeGraph.
- Parameters:
node_graph (spark.graph_editor.models.graph.SparkNodeGraph)
parent (PySide6.QtWidgets.QWidget)
- content#
- addWidget(widget)#
Add a widget to the central content widget’s layout.
- Parameters:
widget (PySide6.QtWidgets.QWidget)
- Return type:
None
- on_session_changed()#
- Return type:
None
- on_node_created(node)#
- Parameters:
node (spark.graph_editor.models.nodes.AbstractNode)
- Return type:
None
- on_selection_update(new_selection, prev_selection)#
- class nodes_panel.ListEntry(node_id, node_name, parent=None)#
Bases:
PySide6.QtWidgets.QWidgetQWidget associated with each entry in the list.
- clicked#
- label#
- mousePressEvent(event)#
- Parameters:
event (PySide6.QtGui.QMouseEvent)
- Return type:
None
- mouseReleaseEvent(event)#
- Parameters:
event (PySide6.QtGui.QMouseEvent)
- Return type:
None
- enterEvent(event)#
- Parameters:
event (PySide6.QtCore.QEvent)
- Return type:
None
- leaveEvent(event)#
- Parameters:
event (PySide6.QtCore.QEvent)
- Return type:
None