spark.graph_editor.ui.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 spark.graph_editor.ui.nodes_panel.NodesPanel(node_graph, name='Nodes', **kwargs)[source]#

Bases: spark.graph_editor.widgets.dock_panel.QDockPanel

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

Parameters:
node_list[source]#
class spark.graph_editor.ui.nodes_panel.QNodeList(node_graph, **kwargs)[source]#

Bases: PySide6.QtWidgets.QWidget

Constructs the nodes list associated with the SparkNodeGraph.

Parameters:

node_graph (spark.graph_editor.models.graph.SparkNodeGraph)

content[source]#
addWidget(widget)[source]#

Add a widget to the central content widget’s layout.

Parameters:

widget (PySide6.QtWidgets.QWidget)

Return type:

None

on_nodes_deletion(nodes_ids)[source]#
Parameters:

nodes_ids (list[str])

Return type:

None

on_session_changed()[source]#
Return type:

None

on_node_created(node)[source]#
Parameters:

node (spark.graph_editor.models.nodes.AbstractNode)

Return type:

None

on_entry_clicked(node_id)[source]#
Parameters:

node_id (str)

Return type:

None

on_selection_update(new_selection, prev_selection)[source]#
Parameters:
Return type:

None

on_node_name_update(node_id, name)[source]#
Parameters:
Return type:

None

class spark.graph_editor.ui.nodes_panel.ListEntry(node_id, node_name)[source]#

Bases: PySide6.QtWidgets.QWidget

QWidget associated with each entry in the list.

Parameters:
  • node_id (str)

  • node_name (str)

clicked[source]#
label[source]#
on_name_update(name)[source]#
Parameters:

name (str)

Return type:

None

mousePressEvent(event)[source]#
Parameters:

event (PySide6.QtGui.QMouseEvent)

Return type:

None

mouseReleaseEvent(event)[source]#
Parameters:

event (PySide6.QtGui.QMouseEvent)

Return type:

None

enterEvent(event)[source]#
Parameters:

event (PySide6.QtCore.QEvent)

Return type:

None

leaveEvent(event)[source]#
Parameters:

event (PySide6.QtCore.QEvent)

Return type:

None

set_selection(value)[source]#
Parameters:

value (bool)

Return type:

None