mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fixes issues 3883 and 5194
This commit is contained in:
parent
cea1ddb4aa
commit
a97063a108
7 changed files with 75 additions and 19 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