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

'close subwindows' command.
This commit is contained in:
Guido van Rossum 1990-10-21 16:15:58 +00:00
parent 5c124871b6
commit 2dbf39cbc6
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,8 @@ def action(w, string, i, detail):
if clicks = 2: if clicks = 2:
name = path.cat(w.name, string) name = path.cat(w.name, string)
try: try:
w = anywin.open(name) w2 = anywin.open(name)
w2.parent = w
except posix.error, why: except posix.error, why:
stdwin.message('Can\'t open ' + name + ': ' + why[1]) stdwin.message('Can\'t open ' + name + ': ' + why[1])

View File

@ -13,7 +13,8 @@ def action(w, string, i, detail):
if clicks = 2: if clicks = 2:
name = path.cat(w.name, string) name = path.cat(w.name, string)
try: try:
w = anywin.open(name) w2 = anywin.open(name)
w2.parent = w
except posix.error, why: except posix.error, why:
stdwin.message('Can\'t open ' + name + ': ' + why[1]) stdwin.message('Can\'t open ' + name + ': ' + why[1])