From 71dfba8a637ced69526fc664654adabc293130ef Mon Sep 17 00:00:00 2001 From: Huluti Date: Sun, 4 Dec 2016 22:46:31 +0100 Subject: [PATCH] Loop to fill pages --- src/manjaro-hello.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index b6b8e1d..3562f6f 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -43,9 +43,9 @@ class ManjaroHello(Gtk.Window): self.builder.get_object("headerbar").props.subtitle = self.infos["codename"] + " " + self.infos["release"] + " " + self.infos["arch"] - self.builder.get_object("readmetext").set_text(self.read_data("readme")) - self.builder.get_object("releasetext").set_text(self.read_data("release")) - self.builder.get_object("involvedtext").set_text(self.read_data("involved")) + # Initialize pages + for page in ("readme", "release", "involved"): + self.builder.get_object(page + "text").set_text(self.read_data(page)) self.builder.get_object("autostart").set_active(self.preferences["autostart"])