nodes_panel#

Classes#

NodesPanel

Dockable panel that shows a summary of the nodes in the graph.

QNodeList

Constructs the nodes list associated with the SparkNodeGraph.

ListEntry

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.QDockPanel

Dockable 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.QWidget

Constructs 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_nodes_deletion(nodes_ids)#
Parameters:

nodes_ids (list[str])

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_entry_clicked(node_id)#
Parameters:

node_id (str)

Return type:

None

on_selection_update(new_selection, prev_selection)#
Parameters:
  • new_selection (list[spark.graph_editor.models.nodes.AbstractNode])

  • prev_selection (list[spark.graph_editor.models.nodes.AbstractNode])

Return type:

None

on_node_name_update(node_id, name)#
Parameters:
Return type:

None

class nodes_panel.ListEntry(node_id, node_name, parent=None)#

Bases: PySide6.QtWidgets.QWidget

QWidget associated with each entry in the list.

Parameters:
  • node_id (str)

  • node_name (str)

  • parent (PySide6.QtWidgets.QWidget)

clicked#
label#
on_name_update(name)#
Parameters:

name (str)

Return type:

None

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

set_selection(value)#
Parameters:

value (bool)

Return type:

None