Fixes issues 3883 and 5194

This commit is contained in:
Ronald Oussoren 2009-03-04 21:35:05 +00:00
parent cea1ddb4aa
commit a97063a108
7 changed files with 75 additions and 19 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):
"""