Fem: Use expression binding with the constraint tie Tolerance property

This commit is contained in:
marioalexis
2024-02-01 18:45:52 -03:00
committed by Chris Hennes
parent c5ad7b50b6
commit 6d0f757b94

View File

@@ -119,6 +119,8 @@ class _TaskPanel:
def init_parameter_widget(self):
self.tolerance = self.obj.Tolerance
self.adjust = self.obj.Adjust
FreeCADGui.ExpressionBinding(self.parameterWidget.spb_tolerance)\
.bind(self.obj, "Tolerance")
self.parameterWidget.spb_tolerance.setProperty("value", self.tolerance)
self.parameterWidget.ckb_adjust.setChecked(self.adjust)