diff options
author | Guido van Rossum <guido@python.org> | 1992-03-30 10:54:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-03-30 10:54:51 (GMT) |
commit | 9cf8f3372c3b7896b085e590c1a11373b58695fb (patch) | |
tree | 024c99b4964dee21aa8bb0f37f641f5b18bad2cc /Demo/stdwin/TestFormSplit.py | |
parent | 7ebb23c6375a028eb8a5f0a20a2e04652b977803 (diff) | |
download | cpython-9cf8f3372c3b7896b085e590c1a11373b58695fb.zip cpython-9cf8f3372c3b7896b085e590c1a11373b58695fb.tar.gz cpython-9cf8f3372c3b7896b085e590c1a11373b58695fb.tar.bz2 |
Initial revision
Diffstat (limited to 'Demo/stdwin/TestFormSplit.py')
-rwxr-xr-x | Demo/stdwin/TestFormSplit.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Demo/stdwin/TestFormSplit.py b/Demo/stdwin/TestFormSplit.py new file mode 100755 index 0000000..272d718 --- /dev/null +++ b/Demo/stdwin/TestFormSplit.py @@ -0,0 +1,27 @@ +#! /usr/local/python + +# TestFormSplit + +import stdwin +from WindowParent import WindowParent, MainLoop +from Buttons import PushButton + +def main(n): + from FormSplit import FormSplit + # + stdwin.setdefscrollbars(1, 1) + # + the_window = WindowParent().create('TestFormSplit', (0, 0)) + the_form = FormSplit().create(the_window) + # + for i in range(n): + if i % 3 == 0: + the_form.placenext(i*40, 0) + the_child = PushButton().define(the_form) + the_child.settext('XXX-' + `i` + '-YYY') + # + the_window.realize() + # + MainLoop() + +main(6) |