inspector_panel#

Classes#

InspectorPanel

Dockable panel to show node configurations.

QNodeConfig

Constructs the UI to modify the SparkConfig associated with the a node.

QNodeIO

Constructs the UI to modify the SparkConfig associated with the a inputs and outpus.

InspectorIdleWidget

Constructs the UI shown when no valid node is selected.

NodeHeaderWidget

QWidget used for the name of nodes in the SparkGraphEditor's Inspector.

NodeNameWidget

QWidget used for the name of nodes in the SparkGraphEditor's Inspector.

TreeDisplay

Module Contents#

class inspector_panel.InspectorPanel(name='Inspector', parent=None, **kwargs)#

Bases: spark.graph_editor.widgets.dock_panel.QDockPanel

Dockable panel to show node configurations.

Parameters:
  • name (str)

  • parent (PySide6.QtWidgets.QWidget)

broadcast_message#
on_selection_update(new_selection, previous_selection)#

Event handler for graph selections.

Parameters:
  • new_selection (list[spark.graph_editor.models.nodes.AbstractNode])

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

Return type:

None

set_node(node)#

Sets the node to be inspected. If the node is None, it clears the inspector.

Input:

node: The node to inspect, or None to clear.

Parameters:

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

on_error_message(message)#
Parameters:

message (str)

Return type:

None

class inspector_panel.QNodeConfig(node, parent=None, **kwargs)#

Bases: PySide6.QtWidgets.QWidget

Constructs the UI to modify the SparkConfig associated with the a node.

Parameters:
  • node (spark.graph_editor.models.nodes.AbstractNode)

  • parent (PySide6.QtWidgets.QWidget)

error_detected#
content#
addWidget(widget)#

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

Parameters:

widget (PySide6.QtWidgets.QWidget)

Return type:

None

name_update(node, name)#
Parameters:
  • node (spark.graph_editor.models.nodes.AbstractNode)

  • name (str)

Return type:

None

on_inheritance_toggle(value, leaf, path)#
Parameters:
Return type:

None

class inspector_panel.QNodeIO(node, parent=None, **kwargs)#

Bases: PySide6.QtWidgets.QWidget

Constructs the UI to modify the SparkConfig associated with the a inputs and outpus.

Parameters:
  • node (spark.graph_editor.models.nodes.AbstractNode)

  • parent (PySide6.QtWidgets.QWidget)

error_detected#
content#
addWidget(widget)#

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

Parameters:

widget (PySide6.QtWidgets.QWidget)

Return type:

None

name_update(node, name)#
Parameters:
  • node (spark.graph_editor.models.nodes.AbstractNode)

  • name (str)

Return type:

None

class inspector_panel.InspectorIdleWidget(message, parent=None, **kwargs)#

Bases: PySide6.QtWidgets.QWidget

Constructs the UI shown when no valid node is selected.

Parameters:
  • message (str)

  • parent (PySide6.QtWidgets.QWidget)

class inspector_panel.NodeHeaderWidget(name, node_cls, config_tree=None, parent=None, **kwargs)#

Bases: spark.graph_editor.widgets.base.SparkQWidget

QWidget used for the name of nodes in the SparkGraphEditor’s Inspector.

Parameters:
  • name (str)

  • node_cls (str)

  • config_tree (str | None)

  • parent (PySide6.QtWidgets.QWidget | None)

name_widget#
class_label#
sizeHint()#
get_value()#

Returns the widget value.

Return type:

str

set_value(value)#

Returns the widget value.

Parameters:

value (str)

Return type:

None

class inspector_panel.NodeNameWidget(name, parent=None, **kwargs)#

Bases: spark.graph_editor.widgets.base.SparkQWidget

QWidget used for the name of nodes in the SparkGraphEditor’s Inspector.

Parameters:
  • name (str)

  • parent (PySide6.QtWidgets.QWidget | None)

sizeHint()#
get_value()#

Returns the widget value.

Return type:

str

set_value(value)#

Returns the widget value.

Parameters:

value (str)

Return type:

None

class inspector_panel.TreeDisplay(tree, parent=None)#

Bases: PySide6.QtWidgets.QPlainTextEdit

Parameters:
  • tree (str)

  • parent (PySide6.QtWidgets.QWidget)

sizeHint()#