spinetoolbox.widgets.array_editor

Contains an editor widget for array type parameter values.

Module Contents

Classes

ArrayEditor

Editor widget for Arrays.

class spinetoolbox.widgets.array_editor.ArrayEditor(parent=None)[source]

Bases: PySide6.QtWidgets.QWidget

Editor widget for Arrays.

Parameters

parent (QWidget, optional) – parent widget

set_value(value)[source]

Sets the parameter_value for editing in this widget.

Parameters

value (Array) – value for editing

value()[source]

Returns the array currently being edited.

Returns

array

Return type

Array

_check_if_plotting_enabled(type_name)[source]

Checks is array’s data type allows the array to be plotted.

Parameters

type_name (str) – data type’s name

_change_value_type(type_name)[source]
open_value_editor(index)[source]

Opens an editor widget for array element.

Parameters

index (QModelIndex) – element’s index

_show_table_context_menu(position)[source]

Shows the table’s context menu.

Parameters

position (QPoint) – menu’s position on the table

_update_plot(topLeft=None, bottomRight=None, roles=None)[source]

Updates the plot widget.

_open_header_editor(column)[source]