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

@ -10,6 +10,7 @@ windows.
"""
import sys
from idlelib.configHandler import idleConf
from idlelib import macosxSupport
menudefs = [
# underscore prefixes character to underscore
@ -80,7 +81,7 @@ menudefs = [
]),
]
if sys.platform == 'darwin' and '.app' in sys.executable:
if macosxSupport.runningAsOSXApp():
# Running as a proper MacOS application bundle. This block restructures
# the menus a little to make them conform better to the HIG.