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

This commit is contained in:
Uwe
2022-08-15 01:33:35 +02:00
parent 3c00213506
commit 1cd02ffee8

View File

@@ -104,6 +104,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(