This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: On maxOS, IDLE app menu can become nearly blank
Type: behavior Stage:
Components: IDLE Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: markroseman, terry.reedy
Priority: normal Keywords:

Created on 2015-08-07 04:25 by markroseman, last changed 2022-04-11 14:58 by admin.

Messages (2)
msg248169 - (view) Author: Mark Roseman (markroseman) * Date: 2015-08-07 04:25
It's fairly easy to get IDLE to revert back to an empty menubar, i.e. just a Python menu.

For example, open a shell, debugger, and editor window. Click on debugger window, then editor window, then close editor window. Focus goes back to debugger, but doesn't have a proper menubar.
msg359552 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-01-07 22:04
The nearly blank menu has the Apple icon and the IDLE dropdown.  I verified that this can be generated with either Debugger or IDLE Help, which are non-modal non-menu windows.

Currently, IDLE has a separate menu for each editor and output and the shell. On macOS, focusing on a menu window pastes that windows menu onto the app menu.  Focusing on a non-menu window leaves the app menu alone, leaving most items linked to the menu window that had the previous focus.  It is not especially good that a majority of menu items do not apply to the current focused window.

Closing a menu window whose menu is currently the app menu removes all but IDLE from the app menu.  Closing any window shifts focus, by default, back to the previous focused window.  So if an app menu window is closed and the previous window is not a menu window, the app menu is cleared and not re-painted.

The nearly blank menu looks odd, but is easily restored by focusing on a menu window.  To fix it anyway, we would have to explicitly focus on a remaining menu window when one is closed.  Or wait until IDLE's menus system is re-factored in such a way that blanking never occurs.
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 69003
2020-01-07 22:04:15terry.reedysettitle: IDLE can lose menubar on OS X -> On maxOS, IDLE app menu can become nearly blank
nosy: - kbk, roger.serwy

messages: + msg359552

assignee: terry.reedy
versions: + Python 3.9, - Python 2.7, Python 3.5, Python 3.6
2015-08-07 04:25:24markrosemancreate