Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da38f2d

Browse files
committed
Added 2 missing SetPort calls
1 parent 3a87f5b commit da38f2d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Mac/Lib/FrameWork.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ def do_postopen(self):
471471
self.parent.appendwindow(self.wid, self)
472472

473473
def close(self):
474-
pass
475474
self.do_postclose()
476475

477476
def do_postclose(self):
@@ -540,6 +539,7 @@ def do_contentclick(self, local, modifiers, event):
540539

541540
def do_rawupdate(self, window, event):
542541
if DEBUG: print "raw update for", window
542+
SetPort(window)
543543
window.BeginUpdate()
544544
self.do_update(window, event)
545545
window.EndUpdate()
@@ -565,6 +565,7 @@ def do_controlhit(self, window, control, pcode, event):
565565

566566
def do_inContent(self, partcode, window, event):
567567
(what, message, when, where, modifiers) = event
568+
SetPort(window) # XXXX Needed?
568569
local = GlobalToLocal(where)
569570
ctltype, control = FindControl(local, window)
570571
if ctltype and control:

0 commit comments

Comments
 (0)