From f526848210dc8e742a25c2c815feb69c2374d062 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Sun, 18 Dec 2016 20:45:07 +0100 Subject: [PATCH] Reduce length of one line --- src/manjaro_hello.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index df85bae..e877786 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -219,7 +219,8 @@ class ManjaroHello(): def on_btn_clicked(self, btn): """Event for clicked button.""" - self.builder.get_object("stack").set_visible_child(self.builder.get_object(btn.get_name() + "page")) + name = btn.get_name() + "page" + self.builder.get_object("stack").set_visible_child(self.builder.get_object(name)) def on_link_clicked(self, link, _=None): """Event for clicked link."""