Simplify loading of pages
parent
2b2822bcbe
commit
c9d6e7287d
|
@ -49,7 +49,8 @@ class Hello():
|
||||||
self.builder.get_object("aboutdialog").set_logo(logo)
|
self.builder.get_object("aboutdialog").set_logo(logo)
|
||||||
|
|
||||||
# Create pages
|
# Create pages
|
||||||
self.pages = ("readme", "release", "involved")
|
self.pages = os.listdir("{}/pages/{}".format(self.preferences["data_path"],
|
||||||
|
self.preferences["default_locale"]))
|
||||||
for page in self.pages:
|
for page in self.pages:
|
||||||
scrolled_window = Gtk.ScrolledWindow()
|
scrolled_window = Gtk.ScrolledWindow()
|
||||||
viewport = Gtk.Viewport(border_width=10)
|
viewport = Gtk.Viewport(border_width=10)
|
||||||
|
|
Loading…
Reference in New Issue