Mercurial > cpython-lru_cache-weakref
annotate Demo/stdwin/TestFormSplit.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 # TestFormSplit | |
| 4 | |
| 5 import stdwin | |
| 6 from WindowParent import WindowParent, MainLoop | |
| 7 from Buttons import PushButton | |
| 8 | |
| 9 def main(n): | |
| 10 from FormSplit import FormSplit | |
| 11 # | |
| 12 stdwin.setdefscrollbars(1, 1) | |
| 13 # | |
| 14 the_window = WindowParent().create('TestFormSplit', (0, 0)) | |
| 15 the_form = FormSplit().create(the_window) | |
| 16 # | |
| 17 for i in range(n): | |
| 18 if i % 3 == 0: | |
| 19 the_form.placenext(i*40, 0) | |
| 20 the_child = PushButton().define(the_form) | |
| 21 the_child.settext('XXX-' + `i` + '-YYY') | |
| 22 # | |
| 23 the_window.realize() | |
| 24 # | |
| 25 MainLoop() | |
| 26 | |
| 27 main(6) |
