diff options
author | Ned Deily <nad@acm.org> | 2014-03-28 03:47:04 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-03-28 03:47:04 (GMT) |
commit | 57847df4e59015c141e645b47112829cf41b582a (patch) | |
tree | 957c78b3e8217ee5ab75e5ae488c85dc40d7349c /Lib/idlelib/PyShell.py | |
parent | b693e9fc5bed8c8375e47a2f189931a4faece30f (diff) | |
download | cpython-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-x | Lib/idlelib/PyShell.py | 4 |
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 |