diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-02 14:04:42 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-02 14:04:42 (GMT) |
commit | 94416e55d35e121a908fec30115a091f707c99e9 (patch) | |
tree | 480dfcd195c3ceff5806eef4772f28a7c5ad8b21 /Mac | |
parent | 2eb4b18f94efbc78818cbc1a21f88bd916b2e6d8 (diff) | |
download | cpython-94416e55d35e121a908fec30115a091f707c99e9.zip cpython-94416e55d35e121a908fec30115a091f707c99e9.tar.gz cpython-94416e55d35e121a908fec30115a091f707c99e9.tar.bz2 |
Got rid of a couple of OS9-isms.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Lib/MiniAEFrame.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Mac/Lib/MiniAEFrame.py b/Mac/Lib/MiniAEFrame.py index e562301..ab54039 100644 --- a/Mac/Lib/MiniAEFrame.py +++ b/Mac/Lib/MiniAEFrame.py @@ -82,7 +82,8 @@ class MiniApplication: if c == '.': raise KeyboardInterrupt, "Command-period" if c == 'q': - MacOS.OutputSeen() + if hasattr(MacOS, 'OutputSeen'): + MacOS.OutputSeen() self.quitting = 1 return elif what == mouseDown: @@ -98,12 +99,16 @@ class MiniApplication: name = self.applemenu.GetMenuItemText(item) Menu.OpenDeskAcc(name) elif id == self.quitid and item == 1: - MacOS.OutputSeen() + if hasattr(MacOS, 'OutputSeen'): + MacOS.OutputSeen() self.quitting = 1 Menu.HiliteMenu(0) return # Anything not handled is passed to Python/SIOUX - MacOS.HandleEvent(event) + if hasattr(MacOS, 'HandleEvent'): + MacOS.HandleEvent(event) + else: + print "Unhandled event:", event def getabouttext(self): return self.__class__.__name__ |