| Revision: | 3 |
| Committed: | Sat May 5 03:52:28 2012 UTC (13 years, 10 months ago) by ninoborges |
| Content type: | text/x-python |
| File size: | 340 byte(s) |
| Log Message: | Initial Import |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | ninoborges | 3 | #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() |