Reduce length of one line

This commit is contained in:
Hugo Posnic 2016-12-18 20:45:07 +01:00
parent a5d4ffc624
commit f526848210

View File

@ -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."""