Mercurial > cpython-lru_cache-weakref
annotate Demo/stdwin/TestCSplit.py @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | 73758db2f464 |
| children |
| rev | line source |
|---|---|
|
4573
73758db2f464
/usr/local/bin/python -> /usr/bin/env python
Guido van Rossum <guido@python.org>
parents:
1120
diff
changeset
|
1 #! /usr/bin/env python |
| 752 | 2 |
| 3 # TestCSplit | |
| 4 | |
| 5 import stdwin | |
| 6 from WindowParent import WindowParent, MainLoop | |
| 7 from Buttons import PushButton | |
| 8 | |
| 9 def main(n): | |
| 10 from CSplit import CSplit | |
| 11 # | |
| 12 stdwin.setdefscrollbars(0, 0) | |
| 13 # | |
| 14 the_window = WindowParent().create('TestCSplit', (0, 0)) | |
| 15 the_csplit = CSplit().create(the_window) | |
| 16 # | |
| 17 for i in range(n): | |
| 18 the_child = PushButton().define(the_csplit) | |
| 19 the_child.settext(`(i+n-1)%n+1`) | |
| 20 # | |
| 21 the_window.realize() | |
| 22 # | |
| 23 MainLoop() | |
| 24 | |
| 25 main(12) |
