From 3aa1432d4c0e75d661589d1dfa5cf3cee78aa602 Mon Sep 17 00:00:00 2001 From: Huluti Date: Mon, 5 Dec 2016 22:18:23 +0100 Subject: [PATCH] Remove unuseful code --- src/manjaro-hello.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index 0521013..9ba1360 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -9,7 +9,7 @@ import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk -class ManjaroHello(Gtk.Window): +class ManjaroHello(): def __init__(self): # App vars self.app = "manjaro-hello" @@ -66,7 +66,7 @@ class ManjaroHello(Gtk.Window): # Set autostart switcher state self.builder.get_object("autostart").set_active(self.preferences["autostart"]) - self.window.show() + self.window.show_all() def change_autostart(self, state): if state and not os.path.isfile(self.autostart_path): @@ -164,5 +164,6 @@ def get_lsb_information(): return lsb -win = ManjaroHello() -Gtk.main() +if __name__ == "__main__": + ManjaroHello() + Gtk.main()