Skip to content

Commit a2e72b8

Browse files
authored
fix attribute error in gmoccapy
Better way of fixing the related attribute error.
1 parent 50cf1ae commit a2e72b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def _make_ref_axis_button(self):
722722
size=_DEFAULT_BB_SIZE,
723723
image_name=f"img_ref_{elem}"
724724
)
725-
btn.set_property("tooltip-text", _("Press to home {0} {1}").format(name_prefix_sg, elem))
725+
btn.set_property("tooltip-text", _("Press to home {0} {1}").format(name_prefix_sg, str(elem).upper()))
726726
btn.connect("clicked", self._on_btn_home_clicked)
727727

728728
self.widgets.hbtb_ref.pack_start(btn,True,True,0)

0 commit comments

Comments
 (0)