From 14070299cdc0faf36975f0cc2d51824a9abf3db0 Mon Sep 17 00:00:00 2001
From: Terry Jan Reedy
Date: Sun, 4 Aug 2019 16:45:15 -0400
Subject: [PATCH] bpo-37748: Re-order the Run menu. (GH-15115)
Put the most common choice, Run Module, at the top.
---
Doc/library/idle.rst | 32 ++++++-------
Lib/idlelib/NEWS.txt | 3 ++
Lib/idlelib/help.html | 45 ++++++++++---------
Lib/idlelib/mainmenu.py | 4 +-
.../2019-08-04-15-27-50.bpo-37748.0vf6pg.rst | 1 +
5 files changed, 46 insertions(+), 39 deletions(-)
create mode 100644 Misc/NEWS.d/next/IDLE/2019-08-04-15-27-50.bpo-37748.0vf6pg.rst
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index 5975e3bb580..0bd248c22b1 100644
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -207,20 +207,6 @@ Strip trailing whitespace
Run menu (Editor window only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-.. _python-shell:
-
-Python Shell
- Open or wake up the Python Shell window.
-
-.. _check-module:
-
-Check Module
- Check the syntax of the module currently open in the Editor window. If the
- module has not been saved IDLE will either prompt the user to save or
- autosave, as selected in the General tab of the Idle Settings dialog. If
- there is a syntax error, the approximate location is indicated in the
- Editor window.
-
.. _run-module:
Run Module
@@ -239,6 +225,20 @@ Run... Customized
settings. *Command Line Arguments* extend :data:`sys.argv` as if passed
on a command line. The module can be run in the Shell without restarting.
+.. _check-module:
+
+Check Module
+ Check the syntax of the module currently open in the Editor window. If the
+ module has not been saved IDLE will either prompt the user to save or
+ autosave, as selected in the General tab of the Idle Settings dialog. If
+ there is a syntax error, the approximate location is indicated in the
+ Editor window.
+
+.. _python-shell:
+
+Python Shell
+ Open or wake up the Python Shell window.
+
Shell menu (Shell window only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -295,8 +295,8 @@ Configure IDLE
menu. For more details, see
:ref:`Setting preferences ` under Help and preferences.
- Most configuration options apply to all windows or all future windows.
- The option items below only apply to the active window.
+Most configuration options apply to all windows or all future windows.
+The option items below only apply to the active window.
Show/Hide Code Context (Editor Window only)
Open a pane at the top of the edit window which shows the block context
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index e3e92bd75f0..0fff7003b9d 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -3,6 +3,9 @@ Released on 2019-10-20?
======================================
+bpo-37748: Reorder the Run menu. Put the most common choice,
+Run Module, at the top.
+
bpo-37692: Improve highlight config sample with example shell
interaction and better labels for shell elements.
diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html
index 49068df7a8b..91e66a4b911 100644
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -210,16 +210,6 @@ including lines within multiline strings.
@@ -900,7 +903,7 @@ also used for testing.
- Last updated on Jul 23, 2019.
+ Last updated on Aug 04, 2019.
Found a bug?
diff --git a/Lib/idlelib/mainmenu.py b/Lib/idlelib/mainmenu.py
index fc51fb1b5d3..74edce23483 100644
--- a/Lib/idlelib/mainmenu.py
+++ b/Lib/idlelib/mainmenu.py
@@ -73,10 +73,10 @@ menudefs = [
]),
('run', [
- ('Python Shell', '<>'),
- ('C_heck Module', '<>'),
('R_un Module', '<>'),
('Run... _Customized', '<>'),
+ ('C_heck Module', '<>'),
+ ('Python Shell', '<>'),
]),
('shell', [
diff --git a/Misc/NEWS.d/next/IDLE/2019-08-04-15-27-50.bpo-37748.0vf6pg.rst b/Misc/NEWS.d/next/IDLE/2019-08-04-15-27-50.bpo-37748.0vf6pg.rst
new file mode 100644
index 00000000000..fc1d6b6bb35
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2019-08-04-15-27-50.bpo-37748.0vf6pg.rst
@@ -0,0 +1 @@
+Reorder the Run menu. Put the most common choice, Run Module, at the top.