[FEM] potential constraint: allow to set expression for value

This commit is contained in:
Uwe
2022-08-15 02:43:32 +02:00
parent 3bb9491fba
commit 64c79f51db
@@ -103,6 +103,8 @@ class _TaskPanel(object):
def _initParamWidget(self):
self._paramWidget.potentialQSB.setProperty(
'value', self._obj.Potential)
FreeCADGui.ExpressionBinding(
self._paramWidget.potentialQSB).bind(self._obj, "Potential")
self._paramWidget.potentialBox.setChecked(
not self._obj.PotentialEnabled)
self._paramWidget.potentialConstantBox.setChecked(