ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/learning/Tkinter/Python_programing_book/gui3.py
Revision: 8
Committed: Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges
Content type: text/x-python
File size: 340 byte(s)
Log Message:
Initial Import

File Contents

# User Rev Content
1 ninoborges 8 #test script from the Programing python book
2     ## Do not run this from Python Win. It crashes it. It runs fine by itself. ie from shell
3     from Tkinter import *
4    
5     def quit():
6     print 'hello, I must be going...'
7     import sys; sys.exit()
8    
9     widget = Button(None, text='Hello GUI World', command = quit)
10     widget.pack()
11     widget.mainloop()