MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/577919_Splash_Screen_GTK/recipe-577919.py:20–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class 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
34if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

set_titleMethod · 0.80
set_positionMethod · 0.45
connectMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected