annotate Demo/stdwin/TestDirList.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 # TestDirList
|
|
|
4
|
|
|
5 from DirList import DirListWindow
|
|
|
6 from WindowParent import MainLoop
|
|
|
7
|
|
|
8 def main():
|
|
|
9 import sys
|
|
|
10 args = sys.argv[1:]
|
|
|
11 if not args:
|
|
|
12 args = ['.']
|
|
|
13 # Mac: args = [':']
|
|
|
14 for arg in args:
|
|
|
15 w = DirListWindow().create(arg)
|
|
|
16 MainLoop()
|
|
|
17
|
|
|
18 main()
|