annotate Demo/stdwin/TestTextEdit.py @ 4566:6403c94de50d
legacy-trunk
Added safeguard against failure in __del__.
| author |
Guido van Rossum <guido@python.org> |
| date |
Wed, 27 Nov 1996 19:39:58 +0000 |
| parents |
5e65b10dd24d |
| children |
73758db2f464 |
| rev |
line source |
|
1120
|
1 #! /usr/local/bin/python
|
|
752
|
2
|
|
|
3 # Test TextEdit widgets
|
|
|
4
|
|
|
5 def main():
|
|
|
6 from TextEdit import TextEdit
|
|
|
7 from WindowParent import WindowParent, MainLoop
|
|
|
8 w = WindowParent().create('Test TextEdit', (0, 0))
|
|
|
9 t = TextEdit().create(w, (40, 4))
|
|
|
10 w.realize()
|
|
|
11 MainLoop()
|
|
|
12
|
|
|
13 main()
|