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.

Author terry.reedy
Recipients epaine, lukasz.langa, taleinat, terry.reedy
Date 2021-09-29.05:35:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632893760.07.0.96689720503.issue45296@roundup.psfhosted.org>
In-reply-to
Content
Unfortunately, I have discovered, the new wording is better but only correct for IDLE when Shell is the only window.

On the file menu, I want to:
A. Change 'Close' to 'Close Window', so it is clear that 'Close'/Alt-F4 only close the window and not IDLE.
B. Also change 'Exit' to 'Exit IDLE' or maybe 'Quit IDLE', so it is clearer that this and Ctrl-Q close all windows and exit IDLE.  Ctrl-Q is the default binding for 'close-all-windows', which users can configure.

Also, add a little in the doc entry for these choices.  Or maybe open a separate issue to add the option name for all menu entry hotkeys that can be rebound.  I don't know how many that is.

For a single window app, like the REPL, when not running in Command Prompt or the equivalent, closing the window and exiting the application are the same thing.  The same is true when Shell is the only IDLE window.  Closing Shell exits IDLE.  After submitting the PR, I discovered that exit() and quit() only close Shell but do not exit IDLE if there are other windows.  So the message should really be something like the following:

To close Shell, enter 'exit()', 'quit()', or 'Alt-F4'.
To exit IDLE, hit 'Ctrl-Q', hotkey for 'File >= Exit IDLE'.

This requires replacing the __repr__ method.  Someone who rebinds either hotkey option, which I expect is rare, will have to remember that they did so if that happen to enter either 'exit' or 'quit' without parens.
--

The question of IDLE on Windows and <^Z Return> was discussed some years ago on an issue a vaguely remember but could not find.  It was decided to either not add it or maybe to remove it, and key cross-platform ^D for closing Shell (and only Shell as it does nothing in Editor).  I don't want to change that decision.
History
Date User Action Args
2021-09-29 05:36:00terry.reedysetrecipients: + terry.reedy, taleinat, lukasz.langa, epaine
2021-09-29 05:36:00terry.reedysetmessageid: <1632893760.07.0.96689720503.issue45296@roundup.psfhosted.org>
2021-09-29 05:36:00terry.reedylinkissue45296 messages
2021-09-29 05:35:59terry.reedycreate