summaryrefslogtreecommitdiffstats
path: root/Lib/lib-stdwin
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-21 16:15:58 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-21 16:15:58 (GMT)
commit2dbf39cbc68a0d27b7793d0f7fdb8a85135b3321 (patch)
tree36aa5c64f01271719466d8c5eee8f723d774eb75 /Lib/lib-stdwin
parent5c124871b66e1af5aeebc6cba4d5320ef3620055 (diff)
downloadcpython-2dbf39cbc68a0d27b7793d0f7fdb8a85135b3321.zip
cpython-2dbf39cbc68a0d27b7793d0f7fdb8a85135b3321.tar.gz
cpython-2dbf39cbc68a0d27b7793d0f7fdb8a85135b3321.tar.bz2
Set 'parent' field of new created subwindows so wdiff can implement
'close subwindows' command.
Diffstat (limited to 'Lib/lib-stdwin')
-rw-r--r--Lib/lib-stdwin/dirwin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-stdwin/dirwin.py b/Lib/lib-stdwin/dirwin.py
index 5df85e7..0b3b5db 100644
--- a/Lib/lib-stdwin/dirwin.py
+++ b/Lib/lib-stdwin/dirwin.py
@@ -13,7 +13,8 @@ def action(w, string, i, detail):
if clicks = 2:
name = path.cat(w.name, string)
try:
- w = anywin.open(name)
+ w2 = anywin.open(name)
+ w2.parent = w
except posix.error, why:
stdwin.message('Can\'t open ' + name + ': ' + why[1])