Skip to content

Commit

Permalink
Merge pull request #875 from itain/PathToolUnitsFix
Browse files Browse the repository at this point in the history
Use the UserString to set text of Gui::InputField from a quantity
  • Loading branch information
yorikvanhavre committed Jul 14, 2017
2 parents aa07c77 + 2ba4bfb commit a57ec19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Path/PathScripts/PathToolController.py
Expand Up @@ -314,10 +314,10 @@ def getFields(self):
def setFields(self):
self.form.tcoName.setText(self.obj.Label)
self.form.uiToolNum.setValue(self.obj.ToolNumber)
self.form.vertFeed.setText(str(self.obj.VertFeed.Value))
self.form.horizFeed.setText(str(self.obj.HorizFeed.Value))
self.form.vertRapid.setText(str(self.obj.VertRapid.Value))
self.form.horizRapid.setText(str(self.obj.HorizRapid.Value))
self.form.vertFeed.setText(self.obj.VertFeed.UserString)
self.form.horizFeed.setText(self.obj.HorizFeed.UserString)
self.form.vertRapid.setText(self.obj.VertRapid.UserString)
self.form.horizRapid.setText(self.obj.HorizRapid.UserString)

self.form.spindleSpeed.setValue(self.obj.SpindleSpeed)

Expand Down

0 comments on commit a57ec19

Please sign in to comment.