spark.graph_editor.widgets.combobox#

Classes#

QComboBoxEdit

A QComboBox widget for selecting a dtype from a predefined list.

QDtype

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

QBool

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

QGenericComboBox

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

Module Contents#

class spark.graph_editor.widgets.combobox.QComboBoxEdit(value, options_list, **kwargs)[source]#

Bases: PySide6.QtWidgets.QComboBox

A QComboBox widget for selecting a dtype from a predefined list.

Parameters:
options_list[source]#
set_value(value)[source]#

Sets the current object selection.

Parameters:

value (Any)

Return type:

None

get_value()[source]#

Returns the currently selected object.

Return type:

Any

setEnabled(value)[source]#
Parameters:

value (bool)

Return type:

None

class spark.graph_editor.widgets.combobox.QDtype(value, value_options, **kwargs)[source]#

Bases: spark.graph_editor.widgets.base.QInput

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

Parameters:
get_value()[source]#

Returns the widget value.

Return type:

numpy.dtype

set_value(value)[source]#

Sets the widget value.

Parameters:

value (numpy.dtype)

Return type:

None

class spark.graph_editor.widgets.combobox.QBool(value=True, **kwargs)[source]#

Bases: spark.graph_editor.widgets.base.QInput

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

Parameters:

value (bool)

get_value()[source]#

Returns the widget value.

Return type:

bool

set_value(value)[source]#

Sets the widget value.

Parameters:

value (bool)

Return type:

None

class spark.graph_editor.widgets.combobox.QGenericComboBox(value, value_options, **kwargs)[source]#

Bases: spark.graph_editor.widgets.base.QInput

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

Parameters:
get_value()[source]#

Returns the widget value.

Return type:

Any

set_value(value)[source]#

Sets the widget value.

Parameters:

value (Any)

Return type:

None