bpo-37748: Re-order the Run menu. (GH-15115)

Put the most common choice, Run Module, at the top.
This commit is contained in:
Terry Jan Reedy 2019-08-04 16:45:15 -04:00 committed by GitHub
parent adf02b36b3
commit 14070299cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 46 additions and 39 deletions

View File

@ -207,20 +207,6 @@ Strip trailing whitespace
Run menu (Editor window only) 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:
Run Module Run Module
@ -239,6 +225,20 @@ Run... Customized
settings. *Command Line Arguments* extend :data:`sys.argv` as if passed 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. 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) Shell menu (Shell window only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -295,8 +295,8 @@ Configure IDLE
menu. For more details, see menu. For more details, see
:ref:`Setting preferences <preferences>` under Help and preferences. :ref:`Setting preferences <preferences>` under Help and preferences.
Most configuration options apply to all windows or all future windows. Most configuration options apply to all windows or all future windows.
The option items below only apply to the active window. The option items below only apply to the active window.
Show/Hide Code Context (Editor Window only) Show/Hide Code Context (Editor Window only)
Open a pane at the top of the edit window which shows the block context Open a pane at the top of the edit window which shows the block context

View File

@ -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 bpo-37692: Improve highlight config sample with example shell
interaction and better labels for shell elements. interaction and better labels for shell elements.

View File

@ -210,16 +210,6 @@ including lines within multiline strings.</dd>
</div> </div>
<div class="section" id="run-menu-editor-window-only"> <div class="section" id="run-menu-editor-window-only">
<span id="index-2"></span><h3>Run menu (Editor window only)<a class="headerlink" href="#run-menu-editor-window-only" title="Permalink to this headline"></a></h3> <span id="index-2"></span><h3>Run menu (Editor window only)<a class="headerlink" href="#run-menu-editor-window-only" title="Permalink to this headline"></a></h3>
<dl class="docutils" id="python-shell">
<dt>Python Shell</dt><dd>Open or wake up the Python Shell window.</dd>
</dl>
<dl class="docutils" id="check-module">
<dt>Check Module</dt><dd>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.</dd>
</dl>
<dl class="docutils" id="run-module"> <dl class="docutils" id="run-module">
<dt>Run Module</dt><dd>Do <a class="reference internal" href="#check-module"><span class="std std-ref">Check Module</span></a>. If no error, restart the shell to clean the <dt>Run Module</dt><dd>Do <a class="reference internal" href="#check-module"><span class="std std-ref">Check Module</span></a>. If no error, restart the shell to clean the
environment, then execute the module. Output is displayed in the Shell environment, then execute the module. Output is displayed in the Shell
@ -234,6 +224,16 @@ line.</dd>
settings. <em>Command Line Arguments</em> extend <a class="reference internal" href="sys.html#sys.argv" title="sys.argv"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.argv</span></code></a> as if passed settings. <em>Command Line Arguments</em> extend <a class="reference internal" href="sys.html#sys.argv" title="sys.argv"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.argv</span></code></a> as if passed
on a command line. The module can be run in the Shell without restarting.</dd> on a command line. The module can be run in the Shell without restarting.</dd>
</dl> </dl>
<dl class="docutils" id="check-module">
<dt>Check Module</dt><dd>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.</dd>
</dl>
<dl class="docutils" id="python-shell">
<dt>Python Shell</dt><dd>Open or wake up the Python Shell window.</dd>
</dl>
</div> </div>
<div class="section" id="shell-menu-shell-window-only"> <div class="section" id="shell-menu-shell-window-only">
<h3>Shell menu (Shell window only)<a class="headerlink" href="#shell-menu-shell-window-only" title="Permalink to this headline"></a></h3> <h3>Shell menu (Shell window only)<a class="headerlink" href="#shell-menu-shell-window-only" title="Permalink to this headline"></a></h3>
@ -268,23 +268,26 @@ access to locals and globals.</dd>
<dl class="docutils"> <dl class="docutils">
<dt>Configure IDLE</dt><dd>Open a configuration dialog and change preferences for the following: <dt>Configure IDLE</dt><dd>Open a configuration dialog and change preferences for the following:
fonts, indentation, keybindings, text color themes, startup windows and fonts, indentation, keybindings, text color themes, startup windows and
size, additional help sources, and extensions. On macOS, open the size, additional help sources, and extensions. On macOS, open the
configuration dialog by selecting Preferences in the application configuration dialog by selecting Preferences in the application
menu. For more, see menu. For more details, see
<a class="reference internal" href="#preferences"><span class="std std-ref">Setting preferences</span></a> under Help and preferences. <a class="reference internal" href="#preferences"><span class="std std-ref">Setting preferences</span></a> under Help and preferences.</dd>
Most configuration options apply to all windows or all future windows. </dl>
The option items below only apply to the active window.</dd> <p>Most configuration options apply to all windows or all future windows.
The option items below only apply to the active window.</p>
<dl class="docutils">
<dt>Show/Hide Code Context (Editor Window only)</dt><dd>Open a pane at the top of the edit window which shows the block context <dt>Show/Hide Code Context (Editor Window only)</dt><dd>Open a pane at the top of the edit window which shows the block context
of the code which has scrolled above the top of the window. See of the code which has scrolled above the top of the window. See
<a class="reference internal" href="#code-context"><span class="std std-ref">Code Context</span></a> in the Editing and Navigation section below.</dd> <a class="reference internal" href="#code-context"><span class="std std-ref">Code Context</span></a> in the Editing and Navigation section
<dt>Line Numbers (Editor Window only)</dt><dd>Open a column to the left of the edit window which shows the linenumber below.</dd>
of each line of text. The default is off unless configured on <dt>Show/Hide Line Numbers (Editor Window only)</dt><dd>Open a column to the left of the edit window which shows the number
(see <a class="reference internal" href="#preferences"><span class="std std-ref">Setting preferences</span></a>).</dd> of each line of text. The default is off, which may be changed in the
preferences (see <a class="reference internal" href="#preferences"><span class="std std-ref">Setting preferences</span></a>).</dd>
<dt>Zoom/Restore Height</dt><dd>Toggles the window between normal size and maximum height. The initial size <dt>Zoom/Restore Height</dt><dd>Toggles the window between normal size and maximum height. The initial size
defaults to 40 lines by 80 chars unless changed on the General tab of the defaults to 40 lines by 80 chars unless changed on the General tab of the
Configure IDLE dialog. The maximum height for a screen is determined by Configure IDLE dialog. The maximum height for a screen is determined by
momentarily maximizing a window the first time one is zoomed on the screen. momentarily maximizing a window the first time one is zoomed on the screen.
Changing screen settings may invalidate the saved height. This toogle has Changing screen settings may invalidate the saved height. This toggle has
no effect when a window is maximized.</dd> no effect when a window is maximized.</dd>
</dl> </dl>
</div> </div>
@ -900,7 +903,7 @@ also used for testing.</p>
<br /> <br />
<br /> <br />
Last updated on Jul 23, 2019. Last updated on Aug 04, 2019.
<a href="https://docs.python.org/3/bugs.html">Found a bug</a>? <a href="https://docs.python.org/3/bugs.html">Found a bug</a>?
<br /> <br />

View File

@ -73,10 +73,10 @@ menudefs = [
]), ]),
('run', [ ('run', [
('Python Shell', '<<open-python-shell>>'),
('C_heck Module', '<<check-module>>'),
('R_un Module', '<<run-module>>'), ('R_un Module', '<<run-module>>'),
('Run... _Customized', '<<run-custom>>'), ('Run... _Customized', '<<run-custom>>'),
('C_heck Module', '<<check-module>>'),
('Python Shell', '<<open-python-shell>>'),
]), ]),
('shell', [ ('shell', [

View File

@ -0,0 +1 @@
Reorder the Run menu. Put the most common choice, Run Module, at the top.