summaryrefslogtreecommitdiffstats
path: root/Demo/stdwin/FormTest.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-30 10:54:51 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-30 10:54:51 (GMT)
commit9cf8f3372c3b7896b085e590c1a11373b58695fb (patch)
tree024c99b4964dee21aa8bb0f37f641f5b18bad2cc /Demo/stdwin/FormTest.py
parent7ebb23c6375a028eb8a5f0a20a2e04652b977803 (diff)
downloadcpython-9cf8f3372c3b7896b085e590c1a11373b58695fb.zip
cpython-9cf8f3372c3b7896b085e590c1a11373b58695fb.tar.gz
cpython-9cf8f3372c3b7896b085e590c1a11373b58695fb.tar.bz2
Initial revision
Diffstat (limited to 'Demo/stdwin/FormTest.py')
-rwxr-xr-xDemo/stdwin/FormTest.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/Demo/stdwin/FormTest.py b/Demo/stdwin/FormTest.py
new file mode 100755
index 0000000..310fe36
--- /dev/null
+++ b/Demo/stdwin/FormTest.py
@@ -0,0 +1,30 @@
+#! /usr/local/python
+
+testlabels = 'Name', 'Address', 'City', 'Country', 'Comments'
+
+def main():
+ import stdwin
+ from WindowParent import WindowParent, MainLoop
+ from FormSplit import FormSplit
+ from Buttons import Label
+ from TextEdit import TextEdit
+ #
+ stdwin.setdefscrollbars(0, 0)
+ #
+ w = WindowParent().create('FormTest', (0, 0))
+ f = FormSplit().create(w)
+ #
+ h, v = 0, 0
+ for label in testlabels:
+ f.placenext(h, v)
+ lbl = Label().definetext(f, label)
+ f.placenext(h + 100, v)
+ txt = TextEdit().createboxed(f, (40, 2), (2, 2))
+ #txt = TextEdit().create(f, (40, 2))
+ v = v + 2*stdwin.lineheight() + 10
+ #
+ w.realize()
+ #
+ MainLoop()
+
+main()