Kaydet (Commit) 94416e55 authored tarafından Jack Jansen's avatar Jack Jansen

Got rid of a couple of OS9-isms.

üst 2eb4b18f
...@@ -82,7 +82,8 @@ class MiniApplication: ...@@ -82,7 +82,8 @@ class MiniApplication:
if c == '.': if c == '.':
raise KeyboardInterrupt, "Command-period" raise KeyboardInterrupt, "Command-period"
if c == 'q': if c == 'q':
MacOS.OutputSeen() if hasattr(MacOS, 'OutputSeen'):
MacOS.OutputSeen()
self.quitting = 1 self.quitting = 1
return return
elif what == mouseDown: elif what == mouseDown:
...@@ -98,12 +99,16 @@ class MiniApplication: ...@@ -98,12 +99,16 @@ class MiniApplication:
name = self.applemenu.GetMenuItemText(item) name = self.applemenu.GetMenuItemText(item)
Menu.OpenDeskAcc(name) Menu.OpenDeskAcc(name)
elif id == self.quitid and item == 1: elif id == self.quitid and item == 1:
MacOS.OutputSeen() if hasattr(MacOS, 'OutputSeen'):
MacOS.OutputSeen()
self.quitting = 1 self.quitting = 1
Menu.HiliteMenu(0) Menu.HiliteMenu(0)
return return
# Anything not handled is passed to Python/SIOUX # 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): def getabouttext(self):
return self.__class__.__name__ return self.__class__.__name__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment