blob: 2750378311c270ee2e79eead16e354505ed43de5 [file] [log] [blame]
Guido van Rossum93a35f41992-12-14 14:12:10 +00001#! /usr/local/bin/python
Guido van Rossum9cf8f331992-03-30 10:54:51 +00002
3# TestFormSplit
4
5import stdwin
6from WindowParent import WindowParent, MainLoop
7from Buttons import PushButton
8
9def 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
27main(6)