Skip to content

Commit cada493

Browse files
committed
gmoccapy: fix attribute error in tooltip text
1 parent a42959f commit cada493

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def _make_ref_axis_button(self):
661661

662662
name = "home_{0}_{1}".format(name_prefix, elem)
663663
btn = self._get_button_with_image(name, filepath, None)
664-
btn.set_property("tooltip-text", _("Press to home {0} {1}").format(name_prefix_sg, elem.upper()))
664+
btn.set_property("tooltip-text", _("Press to home {0} {1}").format(name_prefix_sg, str(elem).upper()))
665665
btn.connect("clicked", self._on_btn_home_clicked)
666666

667667
self.widgets.hbtb_ref.pack_start(btn)
@@ -904,7 +904,7 @@ def _make_touch_button(self):
904904
filepath = os.path.join(IMAGEDIR, file)
905905
name = "touch_{0}".format(elem)
906906
btn = self._get_button_with_image(name, filepath, None)
907-
btn.set_property("tooltip-text", _("Press to set touch off value for axis {0}").format(elem.upper()))
907+
btn.set_property("tooltip-text", _("Press to set touch off value for axis {0}").format(str(elem).upper()))
908908
btn.connect("clicked", self._on_btn_set_value_clicked)
909909

910910
#print("Touch button Name = ",name)

src/emc/usr_intf/gmoccapy/release_notes.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- fixed bug in tooltip text for non-trivial or gantry configuration
2+
3+
Thanks to chili023/TRothfelder for reporting/fixing
14

25
- bug in spindle speed override: The override value wasn't applied
36
when spindle turning in reverse direction

0 commit comments

Comments
 (0)