spark.graph_editor.ui.inspector_panel#
Classes#
Dockable panel to show node configurations. |
|
Constructs the UI to modify the SparkConfig associated with the a node. |
|
Constructs the UI to modify the SparkConfig associated with the a inputs and outpus. |
|
Constructs the UI shown when no valid node is selected. |
|
QWidget used for the name of nodes in the SparkGraphEditor's Inspector. |
|
QWidget used for the name of nodes in the SparkGraphEditor's Inspector. |
|
Module Contents#
- class spark.graph_editor.ui.inspector_panel.InspectorPanel(name='Inspector', **kwargs)[source]#
Bases:
spark.graph_editor.widgets.dock_panel.QDockPanelDockable panel to show node configurations.
- Parameters:
name (str)
- on_selection_update(new_selection, previous_selection)[source]#
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)[source]#
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)
- class spark.graph_editor.ui.inspector_panel.QNodeConfig(node, **kwargs)[source]#
Bases:
PySide6.QtWidgets.QWidgetConstructs the UI to modify the SparkConfig associated with the a node.
- Parameters:
- addWidget(widget)[source]#
Add a widget to the central content widget’s layout.
- Parameters:
widget (PySide6.QtWidgets.QWidget)
- Return type:
None
- class spark.graph_editor.ui.inspector_panel.QNodeIO(node, **kwargs)[source]#
Bases:
PySide6.QtWidgets.QWidgetConstructs the UI to modify the SparkConfig associated with the a inputs and outpus.
- Parameters:
- addWidget(widget)[source]#
Add a widget to the central content widget’s layout.
- Parameters:
widget (PySide6.QtWidgets.QWidget)
- Return type:
None
- class spark.graph_editor.ui.inspector_panel.InspectorIdleWidget(message, **kwargs)[source]#
Bases:
PySide6.QtWidgets.QWidgetConstructs the UI shown when no valid node is selected.
- Parameters:
message (str)
- class spark.graph_editor.ui.inspector_panel.NodeHeaderWidget(name, node_cls, config_tree=None, **kwargs)[source]#
Bases:
spark.graph_editor.widgets.base.QInputQWidget used for the name of nodes in the SparkGraphEditor’s Inspector.
- class spark.graph_editor.ui.inspector_panel.NodeNameWidget(name, **kwargs)[source]#
Bases:
spark.graph_editor.widgets.base.QInputQWidget used for the name of nodes in the SparkGraphEditor’s Inspector.
- Parameters:
name (str)