Reduce length of one line

merge-requests/64/head
Hugo Posnic 2016-12-18 20:45:07 +01:00
parent a5d4ffc624
commit f526848210
1 changed files with 2 additions and 1 deletions

View File

@ -219,7 +219,8 @@ class ManjaroHello():
def on_btn_clicked(self, btn): def on_btn_clicked(self, btn):
"""Event for clicked button.""" """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): def on_link_clicked(self, link, _=None):
"""Event for clicked link.""" """Event for clicked link."""