spinetoolbox.widgets.array_editor

Contains an editor widget for array type parameter values.

author
  1. Soininen (VTT)

date

25.3.2020

Module Contents

Classes

ArrayEditor

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

value(self)[source]

Returns the array currently being edited.

Returns

array

Return type

Array

_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

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

Opens an editor widget for array element.

Parameters

index (QModelIndex) – element’s index

_show_table_context_menu(self, position)[source]

Shows the table’s context menu.

Parameters

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

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

Updates the plot widget.