1 #! /usr/local/bin/python
3 testlabels
= 'Name', 'Address', 'City', 'Country', 'Comments'
7 from WindowParent
import WindowParent
, MainLoop
8 from FormSplit
import FormSplit
9 from Buttons
import Label
10 from TextEdit
import TextEdit
12 stdwin
.setdefscrollbars(0, 0)
14 w
= WindowParent().create('FormTest', (0, 0))
15 f
= FormSplit().create(w
)
18 for label
in testlabels
:
20 lbl
= Label().definetext(f
, label
)
21 f
.placenext(h
+ 100, v
)
22 txt
= TextEdit().createboxed(f
, (40, 2), (2, 2))
23 #txt = TextEdit().create(f, (40, 2))
24 v
= v
+ 2*stdwin
.lineheight() + 10