mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
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:
parent
e7d532fbc9
commit
b7601676b0
12 changed files with 130 additions and 94 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue