summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/dirwin.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-09 03:39:21 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-09 03:39:21 (GMT)
commitd7500fcbb4d0257f3bcd0c87d17ee61f3b1545e8 (patch)
treedb4a6e4835e04851df721eb4595d7172d8e05c34 /Lib/stdwin/dirwin.py
parent045e688f6fc06c87cc93f84e42fb4767a04ba559 (diff)
downloadcpython-d7500fcbb4d0257f3bcd0c87d17ee61f3b1545e8.zip
cpython-d7500fcbb4d0257f3bcd0c87d17ee61f3b1545e8.tar.gz
cpython-d7500fcbb4d0257f3bcd0c87d17ee61f3b1545e8.tar.bz2
These directories renamed: tkinter -> lib-tk, stdwin -> lib-stdwin.
Diffstat (limited to 'Lib/stdwin/dirwin.py')
-rwxr-xr-xLib/stdwin/dirwin.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/Lib/stdwin/dirwin.py b/Lib/stdwin/dirwin.py
deleted file mode 100755
index e8b0170..0000000
--- a/Lib/stdwin/dirwin.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Module 'dirwin'
-
-# Directory windows, a subclass of listwin
-
-import os
-import gwin
-import listwin
-import anywin
-import dircache
-
-def action(w, string, i, detail):
- (h, v), clicks, button, mask = detail
- if clicks == 2:
- name = os.path.join(w.name, string)
- try:
- w2 = anywin.open(name)
- w2.parent = w
- except os.error, why:
- stdwin.message('Can\'t open ' + name + ': ' + why[1])
-
-def open(name):
- name = os.path.join(name, '')
- list = dircache.opendir(name)[:]
- list.sort()
- dircache.annotate(name, list)
- w = listwin.open(name, list)
- w.name = name
- w.action = action
- return w