[FEM] potential constraint: allow to set expression for value
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user