Skip to content

Commit

Permalink
Update Stirrup.py
Browse files Browse the repository at this point in the history
should solve #202
  • Loading branch information
balrobs authored May 28, 2024
1 parent e049099 commit 58e3e7f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Stirrup.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,12 @@ def editStirrup(
def editDialog(vobj):
FreeCADGui.Control.closeDialog()
obj = _StirrupTaskPanel(vobj.Object)
obj.form.frontCover.setText(str(vobj.Object.FrontCover))
obj.form.l_sideCover.setText(str(vobj.Object.LeftCover))
obj.form.r_sideCover.setText(str(vobj.Object.RightCover))
obj.form.t_sideCover.setText(str(vobj.Object.TopCover))
obj.form.b_sideCover.setText(str(vobj.Object.BottomCover))
obj.form.diameter.setText(str(vobj.Object.Diameter))
obj.form.frontCover.setText(FreeCAD.Units.Quantity(vobj.Object.FrontCover, FreeCAD.Units.Length).UserString)
obj.form.l_sideCover.setText(FreeCAD.Units.Quantity(vobj.Object.LeftCover, FreeCAD.Units.Length).UserString)
obj.form.r_sideCover.setText(FreeCAD.Units.Quantity(vobj.Object.RightCover, FreeCAD.Units.Length).UserString)
obj.form.t_sideCover.setText(FreeCAD.Units.Quantity(vobj.Object.TopCover, FreeCAD.Units.Length).UserString)
obj.form.b_sideCover.setText(FreeCAD.Units.Quantity(vobj.Object.BottomCover, FreeCAD.Units.Length).UserString)
obj.form.diameter.setText(FreeCAD.Units.Quantity(vobj.Object.Diameter, FreeCAD.Units.Length).UserString)
obj.form.bentAngle.setCurrentIndex(
obj.form.bentAngle.findText(str(vobj.Object.BentAngle))
)
Expand All @@ -638,7 +638,7 @@ def editDialog(vobj):
obj.form.spacing_radio.setChecked(True)
obj.form.amount.setDisabled(True)
obj.form.spacing.setEnabled(True)
obj.form.spacing.setText(str(vobj.Object.TrueSpacing))
obj.form.spacing.setText(FreeCAD.Units.Quantity(vobj.Object.TrueSpacing, FreeCAD.Units.Length).UserString)
# obj.form.PickSelectedFace.setVisible(False)
FreeCADGui.Control.showDialog(obj)

Expand Down

0 comments on commit 58e3e7f

Please sign in to comment.