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

@ -6,8 +6,12 @@ import sys
import tkinter
def runningAsOSXApp():
""" Returns True iff running from the IDLE.app bundle on OSX """
return (sys.platform == 'darwin' and 'IDLE.app' in sys.argv[0])
"""
Returns True if Python is running from within an app on OSX.
If so, assume that Python was built with Aqua Tcl/Tk rather than
X11 Tck/Tk.
"""
return (sys.platform == 'darwin' and '.app' in sys.executable)
def addOpenEventSupport(root, flist):
"""