import gtk class PyApp gtk Window def __init__ self super PyApp self _

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import gtk
class PyApp(gtk.Window):
def __init__(self):
super(PyApp, self).__init__()
self.connect("destroy", gtk.main_quit)
self.set_size_request(250, 150)
self.set_position(gtk.WIN_POS_CENTER)
self.show()
PyApp()
gtk.main()