From: Terry Jan Reedy
Date: Thu, 27 Jan 2022 03:16:31 +0000 (-0500)
Subject: bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)
X-Git-Tag: v3.11.0a5~80
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcde0bc10ddd836b62d0a8e893d80b8c55e0ba3f;p=thirdparty%2FPython%2Fcpython.git
bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)
In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current
one) and 'Exit' is now 'Exit IDLE' (by closing all windows).
In Shell, 'quit()' and 'exit()' mean 'close Shell'.
If there are no other windows, this also exits IDLE.
---
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index d740973af912..d6021042c611 100644
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -96,11 +96,13 @@ Save Copy As...
Print Window
Print the current window to the default printer.
-Close
- Close the current window (ask to save if unsaved).
+Close Window
+ Close the current window (if an unsaved editor, ask to save; if an unsaved
+ Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the Shell
+ window also closes Shell. If this is the only window, also exit IDLE.
-Exit
- Close all windows and quit IDLE (ask to save unsaved windows).
+Exit IDLE
+ Close all windows and quit IDLE (ask to save unsaved edit windows).
Edit menu (Shell and Editor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html
index 2468afa7148b..41626ec5abb5 100644
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -5,7 +5,7 @@
- IDLE — Python 3.11.0a0 documentation
+ IDLE — Python 3.11.0a4 documentation
@@ -18,7 +18,7 @@
@@ -71,7 +71,7 @@
Close the current window (ask to save if unsaved).
+
Close Window
Close the current window (if an unsaved editor, ask to save; if an unsaved
+Shell, ask to quit execution). Calling exit() or close() in the Shell
+window also closes Shell. If this is the only window, also exit IDLE.
-
Exit
Close all windows and quit IDLE (ask to save unsaved windows).
+
Exit IDLE
Close all windows and quit IDLE (ask to save unsaved edit windows).