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 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.

value[source]

a parameter value

Type:float, bool
value[source]

Returns the value held by the model.

class 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.