From: Jack Jansen Date: Tue, 14 Nov 1995 10:15:42 +0000 (+0000) Subject: Added 2 missing SetPort calls X-Git-Tag: v1.4b1~489 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da38f2d6a3e7146b1cd5ac08f3e3f14f5920c449;p=thirdparty%2FPython%2Fcpython.git Added 2 missing SetPort calls --- diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index e4aa03440d97..bb13757a6a01 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -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: