aboutsummaryrefslogtreecommitdiff
path: root/lib/dirwin.py
diff options
context:
space:
mode:
authorSkip Montanaro <[email protected]>2021-02-16 20:14:16 -0600
committerSkip Montanaro <[email protected]>2021-02-16 20:14:16 -0600
commitc2587c76f1b416cdbecb979e54941933246bf856 (patch)
treebb61ee9128075ce22af4eafa232f13c2e5a07896 /lib/dirwin.py
parentd90761a005b24018ae237bf551515772a1de656f (diff)
downloadpython-0.9.1-patched-QoL-c2587c76f1b416cdbecb979e54941933246bf856.tar.xz
python-0.9.1-patched-QoL-c2587c76f1b416cdbecb979e54941933246bf856.zip
starting over
Diffstat (limited to 'lib/dirwin.py')
-rw-r--r--lib/dirwin.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/dirwin.py b/lib/dirwin.py
index 76e0b5e..0b3b5db 100644
--- a/lib/dirwin.py
+++ b/lib/dirwin.py
@@ -9,21 +9,21 @@ import path
import dircache
def action(w, string, i, detail):
- (h, v), clicks, button, mask = detail
- if clicks = 2:
- name = path.cat(w.name, string)
- try:
- w2 = anywin.open(name)
- w2.parent = w
- except posix.error, why:
- stdwin.message('Can\'t open ' + name + ': ' + why[1])
+ (h, v), clicks, button, mask = detail
+ if clicks = 2:
+ name = path.cat(w.name, string)
+ try:
+ w2 = anywin.open(name)
+ w2.parent = w
+ except posix.error, why:
+ stdwin.message('Can\'t open ' + name + ': ' + why[1])
def open(name):
- name = path.cat(name, '')
- list = dircache.opendir(name)[:]
- list.sort()
- dircache.annotate(name, list)
- w = listwin.open(name, list)
- w.name = name
- w.action = action
- return w
+ name = path.cat(name, '')
+ list = dircache.opendir(name)[:]
+ list.sort()
+ dircache.annotate(name, list)
+ w = listwin.open(name, list)
+ w.name = name
+ w.action = action
+ return w