spinetoolbox.widgets.array_editor
¶
Contains an editor widget for array type parameter values.
- author
Soininen (VTT)
- date
25.3.2020
Module Contents¶
Classes¶
Editor widget for Arrays. |
- class spinetoolbox.widgets.array_editor.ArrayEditor(parent=None)[source]¶
Bases:
PySide2.QtWidgets.QWidget
Editor widget for Arrays.
- Parameters
parent (QWidget, optional) – parent widget
- set_value(self, value)[source]¶
Sets the parameter_value for editing in this widget.
- Parameters
value (Array) – value for editing
- _check_if_plotting_enabled(self, type_name)[source]¶
Checks is array’s data type allows the array to be plotted.
- Parameters
type_name (str) – data type’s name
- open_value_editor(self, index)[source]¶
Opens an editor widget for array element.
- Parameters
index (QModelIndex) – element’s index
Shows the table’s context menu.
- Parameters
position (QPoint) – menu’s position on the table