spinetoolbox.widgets.map_editor

An editor widget for editing a map type parameter values.

author
  1. Soininen (VTT)

date

11.2.2020

Module Contents

Classes

MapEditor

A widget for editing maps.

class spinetoolbox.widgets.map_editor.MapEditor(parent=None)[source]

Bases: PySide2.QtWidgets.QWidget

A widget for editing maps.

parent
Type

QWidget

_convert_leaves(self, _)[source]
_show_table_context_menu(self, position)[source]

Opens table context menu.

Parameters

position (QPoint) – menu’s position

set_value(self, value)[source]

Sets the parameter_value to be edited.

value(self)[source]

Returns the parameter_value currently being edited.

open_value_editor(self, index)[source]

Opens value editor dialog for given map model index.

Parameters

index (QModelIndex) – index