mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Got rid of a couple of OS9-isms.
This commit is contained in:
parent
2eb4b18f94
commit
94416e55d3
1 changed files with 8 additions and 3 deletions
|
|
@ -82,6 +82,7 @@ def lowlevelhandler(self, event):
|
||||||
if c == '.':
|
if c == '.':
|
||||||
raise KeyboardInterrupt, "Command-period"
|
raise KeyboardInterrupt, "Command-period"
|
||||||
if c == 'q':
|
if c == 'q':
|
||||||
|
if hasattr(MacOS, 'OutputSeen'):
|
||||||
MacOS.OutputSeen()
|
MacOS.OutputSeen()
|
||||||
self.quitting = 1
|
self.quitting = 1
|
||||||
return
|
return
|
||||||
|
|
@ -98,12 +99,16 @@ def lowlevelhandler(self, event):
|
||||||
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:
|
||||||
|
if hasattr(MacOS, 'OutputSeen'):
|
||||||
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
|
||||||
|
if hasattr(MacOS, 'HandleEvent'):
|
||||||
MacOS.HandleEvent(event)
|
MacOS.HandleEvent(event)
|
||||||
|
else:
|
||||||
|
print "Unhandled event:", event
|
||||||
|
|
||||||
def getabouttext(self):
|
def getabouttext(self):
|
||||||
return self.__class__.__name__
|
return self.__class__.__name__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue