Guido van Rossum | 17448e2 | 1995-01-30 11:53:55 +0000 | [diff] [blame] | 1 | # play with controls |
| 2 | |
| 3 | from Dlg import * |
| 4 | from Ctl import * |
| 5 | from Win import * |
| 6 | from Evt import * |
| 7 | import time |
Jack Jansen | ae8a68f | 1995-06-06 12:55:40 +0000 | [diff] [blame] | 8 | import sys |
Guido van Rossum | 17448e2 | 1995-01-30 11:53:55 +0000 | [diff] [blame] | 9 | |
| 10 | def main(): |
| 11 | r = (40, 40, 400, 300) |
| 12 | w = NewWindow(r, "The Spanish Inquisition", 1, 0, -1, 1, 0x55555555) |
| 13 | w.DrawGrowIcon() |
| 14 | r = (40, 40, 100, 60) |
| 15 | c = NewControl(w, r, "SPAM!", 1, 0, 0, 1, 0, 0) |
Jack Jansen | ae8a68f | 1995-06-06 12:55:40 +0000 | [diff] [blame] | 16 | print 'Ok, try it...' |
| 17 | sys.exit(1) # So we can see what happens... |
Guido van Rossum | 17448e2 | 1995-01-30 11:53:55 +0000 | [diff] [blame] | 18 | |
| 19 | |
| 20 | main() |