(self)
| 18 | |
| 19 | class yourApp(): |
| 20 | def __init__(self): |
| 21 | self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) |
| 22 | self.window.set_title('Your app name') |
| 23 | self.window.set_position(gtk.WIN_POS_CENTER) |
| 24 | self.window.connect('destroy', gtk.main_quit) |
| 25 | main_vbox = gtk.VBox(False, 1) |
| 26 | self.window.add(main_vbox) |
| 27 | hbox = gtk.HBox(False, 0) |
| 28 | self.lbl = gtk.Label('All done! :)') |
| 29 | self.lbl.set_alignment(0, 0.5) |
| 30 | main_vbox.pack_start(self.lbl, True, True) |
| 31 | self.window.show_all() |
| 32 | |
| 33 | |
| 34 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected