Fix for issue5194, based on a patch by Ned Deily.

This commit is contained in:
Ronald Oussoren 2009-02-12 15:01:44 +00:00
parent de09acf298
commit 827822ef3f
8 changed files with 65 additions and 15 deletions

View file

@ -363,7 +363,7 @@ class EditorWindow(object):
underline, label = prepstr(label)
menudict[name] = menu = Menu(mbar, name=name)
mbar.add_cascade(label=label, menu=menu, underline=underline)
if sys.platform == 'darwin' and '.framework' in sys.executable:
if macosxSupport.runningAsOSXApp():
# Insert the application menu
menudict['application'] = menu = Menu(mbar, name='apple')
mbar.add_cascade(label='IDLE', menu=menu)