mirror of
https://github.com/python/cpython.git
synced 2025-09-07 17:32:01 +00:00
Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
This commit is contained in:
parent
bf21bef254
commit
01a2d9e281
9 changed files with 14 additions and 18 deletions
|
@ -674,12 +674,13 @@ class AppleMenu(Menu):
|
|||
Menu.__init__(self, bar, "\024")
|
||||
self.additem(abouttext, None, aboutcallback)
|
||||
self.addseparator()
|
||||
self.menu.AppendResMenu('DRVR')
|
||||
if MacOS.runtimemodel == 'ppc':
|
||||
self.menu.AppendResMenu('DRVR')
|
||||
|
||||
def dispatch(self, id, item, window, event):
|
||||
if item == 1:
|
||||
Menu.dispatch(self, id, item, window, event)
|
||||
else:
|
||||
elif MacOS.runtimemodel == 'ppc':
|
||||
name = self.menu.GetMenuItemText(item)
|
||||
OpenDeskAcc(name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue