summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Tools/IDE/Wapplication.py5
-rw-r--r--Mac/Tools/IDE/Wwindows.py5
2 files changed, 8 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py
index fdcd9fb..ec0071f 100644
--- a/Mac/Tools/IDE/Wapplication.py
+++ b/Mac/Tools/IDE/Wapplication.py
@@ -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
diff --git a/Mac/Tools/IDE/Wwindows.py b/Mac/Tools/IDE/Wwindows.py
index 653499b..ffab76c 100644
--- a/Mac/Tools/IDE/Wwindows.py
+++ b/Mac/Tools/IDE/Wwindows.py
@@ -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: