annotate Mac/Lib/test/tte.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 cdea3f27cf7c
children 42b2f1936254
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3498
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
1 # Test TE module, simple version
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
2
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
3 from Win import *
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
4 from TE import *
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
5 import Qd
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
6
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
7 r = (40, 40, 140, 140)
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
8 w = NewWindow(r, "TETextBox test", 1, 0, -1, 1, 0x55555555)
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
9 ##w.DrawGrowIcon()
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
10
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
11 r = (10, 10, 90, 90)
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
12
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
13 Qd.SetPort(w)
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
14 t = TETextBox("Nobody expects the SPANISH inquisition", r, 1)
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
15
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
16 import time
cdea3f27cf7c TextEdit sample code (not yet complete)
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
17 time.sleep(10)