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 – name of the metric value to define
default_unit – Default way to present a value when set
- editingFinished#
emit when editing is finished
- getCurrentUnit()#
- getValue()#
- Return type:
float
- Returns:
the value in meter
- setLabelText(text)#
- setReadOnly(a0)#
- setUnit(unit)#
- setValidator(validator)#
- setValue(value_m, displayed_unit='m')#
- Parameters:
value – pixel size in international metric system (meter)
- valueChanged#
emit when the metric value change