Skip to content

Commit 31bd2e1

Browse files
committed
gmoccapy: fix "Must be string, not int" in notification (#4032)
Gtk.Label wants a string as label, not an int. This converts the int explicitly to a string.
1 parent 5e9cedd commit 31bd2e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/emc/usr_intf/gmoccapy/notification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _show_message(self, message):
109109
hbox.set_property('spacing', 5)
110110
if self.use_frames:
111111
frame.add(hbox)
112-
labelnumber = Gtk.Label(label = number)
112+
labelnumber = Gtk.Label(label = str(number))
113113
hbox.pack_start(labelnumber, False, False, 0)
114114
icon = Gtk.Image()
115115
if message[2]:

0 commit comments

Comments
 (0)