mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix for issue5194, based on a patch by Ned Deily.
This commit is contained in:
parent
de09acf298
commit
827822ef3f
8 changed files with 65 additions and 15 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue