tomwer.gui.utils.unitsystem.MetricEntry#
- class tomwer.gui.utils.unitsystem.MetricEntry(name, value=0.0, default_unit=<Unit('meter')>, 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 (
Unit) – Default way to present a value when set
- editingFinished#
emit when editing is finished
- getCurrentUnit()#
- getValue()#
- Return type:
pint.Quantity | None
- Returns:
the value in meter
- setLabelText(text)#
- setReadOnly(a0)#
- setUnit(unit)#
- setValidator(validator)#
- setValue(value_m, displayed_unit=<Unit('meter')>)#
- Parameters:
value – pixel size in international metric system (meter)
- valueChanged#
emit when the metric value change