spark.graph_editor.widgets.combobox#
Classes#
A QComboBox widget for selecting a dtype from a predefined list. |
|
Custom QWidget used for dtypes fields in the SparkGraphEditor's Inspector. |
|
Custom QWidget used for bool fields in the SparkGraphEditor's Inspector. |
|
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.QComboBoxA QComboBox widget for selecting a dtype from a predefined list.
- class spark.graph_editor.widgets.combobox.QDtype(value, value_options, **kwargs)[source]#
Bases:
spark.graph_editor.widgets.base.QInputCustom QWidget used for dtypes fields in the SparkGraphEditor’s Inspector.
- Parameters:
value (numpy.dtype)
value_options (list[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.QInputCustom QWidget used for bool fields in the SparkGraphEditor’s Inspector.
- Parameters:
value (bool)
- class spark.graph_editor.widgets.combobox.QGenericComboBox(value, value_options, **kwargs)[source]#
Bases:
spark.graph_editor.widgets.base.QInputCustom QWidget used for arbitrary selectable fields fields in the SparkGraphEditor’s Inspector.