Issue #17654: Ensure IDLE menus are customized properly on OS X for

non-framework builds and for all variants of Tk.
This commit is contained in:
Ned Deily 2014-03-27 20:49:14 -07:00
parent e7d532fbc9
commit b7601676b0
12 changed files with 130 additions and 94 deletions

View file

@ -844,7 +844,7 @@ class PyShell(OutputWindow):
("help", "_Help"),
]
if macosxSupport.runningAsOSXApp():
if sys.platform == "darwin":
menu_specs[-2] = ("windows", "_Window")
@ -1560,7 +1560,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