From: Guido van Rossum Date: Sun, 21 Oct 1990 16:15:58 +0000 (+0000) Subject: Set 'parent' field of new created subwindows so wdiff can implement X-Git-Tag: v0.9.8~1164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dbf39cbc68a0d27b7793d0f7fdb8a85135b3321;p=thirdparty%2FPython%2Fcpython.git Set 'parent' field of new created subwindows so wdiff can implement 'close subwindows' command. --- diff --git a/Lib/lib-stdwin/dirwin.py b/Lib/lib-stdwin/dirwin.py index 5df85e7e39fa..0b3b5dbf7bee 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]) diff --git a/Lib/stdwin/dirwin.py b/Lib/stdwin/dirwin.py index 5df85e7e39fa..0b3b5dbf7bee 100755 --- a/Lib/stdwin/dirwin.py +++ b/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])