summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-03-28 03:47:04 (GMT)
committerNed Deily <nad@acm.org>2014-03-28 03:47:04 (GMT)
commit57847df4e59015c141e645b47112829cf41b582a (patch)
tree957c78b3e8217ee5ab75e5ae488c85dc40d7349c /Lib/idlelib/PyShell.py
parentb693e9fc5bed8c8375e47a2f189931a4faece30f (diff)
downloadcpython-57847df4e59015c141e645b47112829cf41b582a.zip
cpython-57847df4e59015c141e645b47112829cf41b582a.tar.gz
cpython-57847df4e59015c141e645b47112829cf41b582a.tar.bz2
Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rwxr-xr-xLib/idlelib/PyShell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index a424751..0d94944 100755
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -866,7 +866,7 @@ class PyShell(OutputWindow):
("help", "_Help"),
]
- if macosxSupport.runningAsOSXApp():
+ if sys.platform == "darwin":
menu_specs[-2] = ("windows", "_Window")
@@ -1566,7 +1566,7 @@ def main():
shell = flist.open_shell()
if not shell:
return # couldn't open shell
- if macosxSupport.runningAsOSXApp() and flist.dict:
+ if macosxSupport.isAquaTk() and flist.dict:
# On OSX: when the user has double-clicked on a file that causes
# IDLE to be launched the shell window will open just in front of
# the file she wants to see. Lower the interpreter window when