diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-21 22:36:57 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-21 22:36:57 (GMT) |
commit | b9e66612069f0f1ce9f38c4abb7f273289efd203 (patch) | |
tree | ac9d9e5676fa205b8be1fe5eb59f3986e997217b /Mac/Tools/IDE/Wwindows.py | |
parent | 0e5a7338877c7ef0f8e021e7390f9d6cf80d7875 (diff) | |
download | cpython-b9e66612069f0f1ce9f38c4abb7f273289efd203.zip cpython-b9e66612069f0f1ce9f38c4abb7f273289efd203.tar.gz cpython-b9e66612069f0f1ce9f38c4abb7f273289efd203.tar.bz2 |
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).
Diffstat (limited to 'Mac/Tools/IDE/Wwindows.py')
-rw-r--r-- | Mac/Tools/IDE/Wwindows.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |