summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-11-14 10:15:42 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-11-14 10:15:42 (GMT)
commitda38f2d6a3e7146b1cd5ac08f3e3f14f5920c449 (patch)
tree675ab6f98d8302fe27af087c613670b48a1a9cfc
parent3a87f5bb09558e8015ed7fed5e71b1bbb17c121d (diff)
downloadcpython-da38f2d6a3e7146b1cd5ac08f3e3f14f5920c449.zip
cpython-da38f2d6a3e7146b1cd5ac08f3e3f14f5920c449.tar.gz
cpython-da38f2d6a3e7146b1cd5ac08f3e3f14f5920c449.tar.bz2
Added 2 missing SetPort calls
-rw-r--r--Mac/Lib/FrameWork.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index e4aa034..bb13757 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: