spinetoolbox.widgets.plain_parameter_value_editor

An editor widget for editing plain number database (relationship) parameter values.

author:
  1. Soininen (VTT)
date:

28.6.2019

Module Contents

class spinetoolbox.widgets.plain_parameter_value_editor._ValueModel(value)[source]

A model to handle the parameter value in the editor. Mostly useful because of the handy conversion of strings to floats or booleans.

Parameters:value (float, bool) – a parameter value
value[source]

Returns the value held by the model.

class spinetoolbox.widgets.plain_parameter_value_editor.PlainParameterValueEditor(parent_widget=None)[source]

Bases: PySide2.QtWidgets.QWidget

A widget to edit float or boolean type parameter values.

parent_widget

a parent widget

Type:QWidget
set_value(self, value)[source]

Sets the value to be edited in this widget.

_value_changed(self)[source]

Updates the model.

value(self)[source]

Returns the value currently being edited.