aboutsummaryrefslogtreecommitdiff
path: root/lib/dirwin.py
diff options
context:
space:
mode:
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