jpcad/Window.py
2011-03-22 13:18:36 -04:00

17 lines
402 B
Python

import gtk
class Window:
def __init__(self, title):
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_title(title)
self.window.connect("destroy", self.destroy_event)
self.window.add(gtk.Label('Hello World'))
self.window.show_all()
def main(self):
gtk.main()
def destroy_event(self, widget, data=None):
gtk.main_quit()