]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added 2 missing SetPort calls
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 14 Nov 1995 10:15:42 +0000 (10:15 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 14 Nov 1995 10:15:42 +0000 (10:15 +0000)
Mac/Lib/FrameWork.py

index e4aa03440d97ce58e9f87999d858797a14e5618a..bb13757a6a01c5a88c5a977aa4851545de2bc262 100644 (file)
@@ -471,7 +471,6 @@ class Window:
                self.parent.appendwindow(self.wid, self)
                
        def close(self):
-               pass
                self.do_postclose()
                        
        def do_postclose(self):
@@ -540,6 +539,7 @@ class Window:
        
        def do_rawupdate(self, window, event):
                if DEBUG: print "raw update for", window
+               SetPort(window)
                window.BeginUpdate()
                self.do_update(window, event)
                window.EndUpdate()
@@ -565,6 +565,7 @@ class ControlsWindow(Window):
 
        def do_inContent(self, partcode, window, event):
                (what, message, when, where, modifiers) = event
+               SetPort(window)  # XXXX Needed?
                local = GlobalToLocal(where)
                ctltype, control = FindControl(local, window)
                if ctltype and control: