Commit ede22712 authored by Guido van Rossum's avatar Guido van Rossum

Set 'parent' field of new created subwindows so wdiff can implement

'close subwindows' command.
parent 3f7b0dee
......@@ -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])
......
......@@ -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])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment