from Tkinter import * class HelloClass: def __init__(self): widget = Button(None, text='Hello event world', command=self.quit) widget.pack() def quit(self): print 'Hello class method world' import sys; sys.exit() HelloClass()mainloop()
Name (required)
email (will not be published) (required)
Website