]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Set 'parent' field of new created subwindows so wdiff can implement
authorGuido van Rossum <guido@python.org>
Sun, 21 Oct 1990 16:15:58 +0000 (16:15 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 21 Oct 1990 16:15:58 +0000 (16:15 +0000)
'close subwindows' command.

Lib/lib-stdwin/dirwin.py
Lib/stdwin/dirwin.py

index 5df85e7e39fa52ee05ff521af380ac139fff2153..0b3b5dbf7beec1ec383b573575fe19f638d84298 100644 (file)
@@ -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])
 
index 5df85e7e39fa52ee05ff521af380ac139fff2153..0b3b5dbf7beec1ec383b573575fe19f638d84298 100755 (executable)
@@ -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])