From 1ccf312bc0c019cef735b396d9daeb90dd4eaebd Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 4 Jul 2017 15:19:22 +1000 Subject: [PATCH] Fix AttributeError after RatbagdButton.button was removed AttributeError: 'RatbagdButton' object has no attribute 'button' Introduced in 7f54cdc3f477f2f78bf100148aedaf02baf10e3b Signed-off-by: Peter Hutterer --- piper/piper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piper/piper.py b/piper/piper.py index 221c437..6c7ba55 100644 --- a/piper/piper.py +++ b/piper/piper.py @@ -253,7 +253,7 @@ class Piper(Gtk.Window): for l, button in zip(self._button_function_labels, buttons): action = button.action_type if action == "button": - text = "Button {} click".format(button.button) + text = "Button {} click".format(button.button_mapping) elif action == "key": text = "Key event: {}".format(button.key[0]) elif action == "macro":