Terry J. Reedy <tjre...@udel.edu> added the comment:
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. ---------- assignee: -> terry.reedy nosy: -kbk, roger.serwy title: IDLE can lose menubar on OS X -> On maxOS, IDLE app menu can become nearly blank versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24815> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com