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).
This commit is contained in:
parent
0e5a733887
commit
b9e6661206
|
@ -202,7 +202,10 @@ class Application(FrameWork.Application):
|
||||||
import sys
|
import sys
|
||||||
sys.stderr.write("XXX killed unknown (crashed?) Python window.\n")
|
sys.stderr.write("XXX killed unknown (crashed?) Python window.\n")
|
||||||
else:
|
else:
|
||||||
|
if hasattr(MacOS, 'HandleEvent'):
|
||||||
MacOS.HandleEvent(event)
|
MacOS.HandleEvent(event)
|
||||||
|
else:
|
||||||
|
print 'Unexpected updateEvent:', event
|
||||||
|
|
||||||
def suspendresume(self, onoff):
|
def suspendresume(self, onoff):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -519,7 +519,10 @@ class ModalDialog(Dialog):
|
||||||
name = "do_%d" % partcode
|
name = "do_%d" % partcode
|
||||||
|
|
||||||
if name == "do_inDesk":
|
if name == "do_inDesk":
|
||||||
|
if hasattr(MacOS, "HandleEvent"):
|
||||||
MacOS.HandleEvent(event)
|
MacOS.HandleEvent(event)
|
||||||
|
else:
|
||||||
|
print 'Unexpected inDesk event:', event
|
||||||
return
|
return
|
||||||
if wid == self.wid:
|
if wid == self.wid:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue