Got rid of a couple of OS9-isms.

This commit is contained in:
Jack Jansen 2002-08-02 14:04:42 +00:00
parent 2eb4b18f94
commit 94416e55d3

View file

@ -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__