[New-bugs-announce] [issue25032] IDLE - same menubar across application

Mark Roseman report at bugs.python.org
Tue Sep 8 19:22:33 CEST 2015


New submission from Mark Roseman:

Right now the menubar is slightly different for the shell (has Debug) and the editor windows (has Format and Run). I'd like to suggest the same menubar be used for all windows.

Rationale:

1. Easier to use, especially for systems that share a single menubar visually across the top of screen.

2. Later on we'll likely have situations where shell and one or more editors are part of the same toplevel window.


Implementation Notes:

1. Tk lets you reuse the same menubar across multiple toplevel windows (it actually creates a 'clone' every time it gets attached to the window).

2. This will simplify code e.g. for managing help and windows menus, which now have to do the same thing for multiple menubars.

3. Using tabbed windows, while it's possible to swap the menubar on the fly as you swap windows, it's not necessarily desirable to do so.

4. I've mocked up a system for menu validation/dispatch that will simplify how menu commands are handled now depending on what window is in front, and makes it easier to ensure the right things are enabled/disabled based on context.

----------
components: IDLE
messages: 250242
nosy: kbk, markroseman, roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE - same menubar across application
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25032>
_______________________________________


More information about the New-bugs-announce mailing list