Example #1
0
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()
Example #2
0
 def __init__(self, *args, **kwargs):
     Gtk.Application.__init__(self)
     self.window = Window()
     self.window.connect("destroy", Gtk.main_quit)