spark.graph_editor.widgets.base#

Classes#

QInput

QWidget interface class for the graph editor inputs.

QField

Base QWidget class for the graph editor fields.

QMissing

Custom QWidget used for int fields in the SparkGraphEditor's Inspector.

Module Contents#

class spark.graph_editor.widgets.base.QInput(*args, value_options=None, **kwargs)[source]#

Bases: PySide6.QtWidgets.QWidget

QWidget interface class for the graph editor inputs.

QInput streamlines updates by setting a common set/get interface.

Parameters:

value_options (Any)

on_update[source]#
abstractmethod get_value()[source]#

Returns the widget value.

Return type:

Any

abstractmethod set_value(value)[source]#

Sets the widget value.

Parameters:

value (Any)

Return type:

Any

class spark.graph_editor.widgets.base.QField(attr_label, attr_value, attr_widget, value_options=None, **kwargs)[source]#

Bases: PySide6.QtWidgets.QWidget

Base QWidget class for the graph editor fields.

Parameters:
  • attr_label (str)

  • attr_value (Any)

  • attr_widget (type[QInput])

  • value_options (Any)

on_field_update[source]#
attr_label[source]#
attr_widget[source]#
get_value()[source]#

Get the input widget value.

Return type:

Any

set_value(value)[source]#

Sets the input widget value.

Parameters:

value (Any)

Return type:

Any

class spark.graph_editor.widgets.base.QMissing(*args, **kwargs)[source]#

Bases: QInput

Custom QWidget used for int fields in the SparkGraphEditor’s Inspector.

get_value()[source]#

Returns the widget value.

Return type:

str