from Tkinter import *def hello(): print 'Hello, world!'win = Tk()win.title('Hello, Tkinter!')win.geometry('200x100') # Size 200, 200btn = Button(win, text='Hello', command=hello)btn.pack(expand=YES, fill=BOTH)mainloop()
Name (required)
email (will not be published) (required)
Website