class Application(Gtk.Application): def __init__(self, *args, **kwargs): Gtk.Application.__init__(self) self.window = Window() self.window.connect("destroy", Gtk.main_quit) def run(self): self.window.show_all() Gtk.main()
def __init__(self, *args, **kwargs): Gtk.Application.__init__(self) self.window = Window() self.window.connect("destroy", Gtk.main_quit)