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).
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 @@
 			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: