From b08d45550b3cf26b7ce9923bcc2bcaf56231c906 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Mon, 17 Jul 2017 14:50:38 +0200 Subject: [PATCH] LedsPage: remove button from callbacks --- piper/ledspage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piper/ledspage.py b/piper/ledspage.py index e3d2049..46c49af 100644 --- a/piper/ledspage.py +++ b/piper/ledspage.py @@ -71,10 +71,10 @@ class LedsPage(Gtk.Box): # Presents the LedDialog to configure the LED corresponding to the # clicked button. dialog = LedDialog(led, transient_for=self.get_toplevel()) - dialog.connect("response", self._on_dialog_response, button, led) + dialog.connect("response", self._on_dialog_response, led) dialog.present() - def _on_dialog_response(self, dialog, response, button, led): + def _on_dialog_response(self, dialog, response, led): # The user either pressed cancel or apply. If it's apply, apply the # changes before closing the dialog, otherwise just close the dialog. if response == Gtk.ResponseType.APPLY: