Commit 5b98ac5b authored by Guido van Rossum's avatar Guido van Rossum

added hello world

parent 4e620374
# Display hello, world in a button; clicking it quits the program
import sys
from Tkinter import *
def main():
root = Tk()
button = Button(root)
button['text'] = 'Hello, world'
button['command'] = quit_callback # See below
button.pack()
root.mainloop()
def quit_callback():
sys.exit(0)
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment