tomwer.gui.utils.unitsystem.MetricEntry#

class tomwer.gui.utils.unitsystem.MetricEntry(name, value=0.0, default_unit='m', parent=None)#

Create a simple line with a name, a QLineEdit and a combobox to define the unit in order to define a metric value.

Parameters:
  • name (str) – name of the metric value to define

  • str – base_unit. Default way to present a value when setted

class DoubleValidator(*args, **kwargs)#
validate(a0, a1)#
editingFinished#

emit when editing is finished

getCurrentUnit()#
getValue()#
Returns:

the value in meter

Return type:

float

setLabelText(text)#
setReadOnly(a0)#
setUnit(unit)#
setValidator(validator)#
setValue(value_m, displayed_unit='m')#
Parameters:

value (float) – pixel size in international metric system (meter)

valueChanged#

emit when the metric value change