[FEM] Electrostatic: read values with its unit

This commit is contained in:
Uwe
2022-03-23 16:03:35 +01:00
parent 950a569b44
commit 0419d2f756

View File

@@ -92,9 +92,9 @@ class _TaskPanel(object):
def _initParamWidget(self):
unit = "V"
q = Units.Quantity("{} {}".format(self._obj.Potential, unit))
quantity = Units.Quantity("{} {}".format(self._obj.Potential, unit))
self._paramWidget.potentialQSB.setProperty(
'rawValue', q.Value)
'value', quantity)
self._paramWidget.potentialBox.setChecked(
not self._obj.PotentialEnabled)
self._paramWidget.potentialConstantBox.setChecked(