Kaydet (Commit) b9e66612 authored tarafından Jack Jansen's avatar Jack Jansen

For reasons I don't fully understand we sometimes get unexpected events

in MachoPython. As we don't have MacOS.HandleEvent() we drop these on
the floor (with a print).
üst 0e5a7338
......@@ -202,7 +202,10 @@ class Application(FrameWork.Application):
import sys
sys.stderr.write("XXX killed unknown (crashed?) Python window.\n")
else:
MacOS.HandleEvent(event)
if hasattr(MacOS, 'HandleEvent'):
MacOS.HandleEvent(event)
else:
print 'Unexpected updateEvent:', event
def suspendresume(self, onoff):
pass
......
......@@ -519,7 +519,10 @@ class ModalDialog(Dialog):
name = "do_%d" % partcode
if name == "do_inDesk":
MacOS.HandleEvent(event)
if hasattr(MacOS, "HandleEvent"):
MacOS.HandleEvent(event)
else:
print 'Unexpected inDesk event:', event
return
if wid == self.wid:
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment