[Python-checkins] cpython (2.7): Issue #15308: Add 'interrupt execution' (^C) to Shell menu.

terry.reedy python-checkins at python.org
Mon Sep 12 01:57:41 EDT 2016


https://hg.python.org/cpython/rev/9148a2213631
changeset: 103691:9148a2213631
branch: 2.7
parent: 103683:2b4bfef0d54a
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Mon Sep 12 01:49:55 2016 -0400
summary:
 Issue #15308: Add 'interrupt execution' (^C) to Shell menu.
Patch by Roger Serwy, updated by Bayard Randel.
files:
 Doc/library/idle.rst | 3 +++
 Lib/idlelib/Bindings.py | 2 ++
 Lib/idlelib/README.txt | 11 ++++++-----
 Lib/idlelib/help.html | 4 +++-
 4 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -222,6 +222,9 @@
 Restart Shell
 Restart the shell to clean the environment.
 
+Interrupt Execution
+ Stop a running program.
+
 Debug menu (Shell window only)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
diff --git a/Lib/idlelib/Bindings.py b/Lib/idlelib/Bindings.py
--- a/Lib/idlelib/Bindings.py
+++ b/Lib/idlelib/Bindings.py
@@ -67,6 +67,8 @@
 ('shell', [
 ('_View Last Restart', '<<view-restart>>'),
 ('_Restart Shell', '<<restart-shell>>'),
+ None,
+ ('_Interrupt Execution', '<<interrupt-execution>>'),
 ]),
 ('debug', [
 ('_Go to File/Line', '<<goto-file-line>>'),
diff --git a/Lib/idlelib/README.txt b/Lib/idlelib/README.txt
--- a/Lib/idlelib/README.txt
+++ b/Lib/idlelib/README.txt
@@ -161,14 +161,15 @@
 Show surrounding parens # ParenMatch (& Hyperparser)
 
 Shell # PyShell
- View Last Restart # PyShell.?
- Restart Shell # PyShell.?
+ View Last Restart # PyShell.PyShell.view_restart_mark
+ Restart Shell # PyShell.PyShell.restart_shell
+ Interrupt Execution # pyshell.PyShell.cancel_callback
 
 Debug (Shell only)
 Go to File/Line
- Debugger # Debugger, RemoteDebugger
- Stack Viewer # StackViewer
- Auto-open Stack Viewer # StackViewer
+ Debugger # Debugger, RemoteDebugger, PyShell.toggle_debuger
+ Stack Viewer # StackViewer, PyShell.open_stack_viewer
+ Auto-open Stack Viewer # StackViewer
 
 Format (Editor only)
 Indent Region
diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -238,6 +238,8 @@
 <dd>Scroll the shell window to the last Shell restart.</dd>
 <dt>Restart Shell</dt>
 <dd>Restart the shell to clean the environment.</dd>
+<dt>Interrupt Execution</dt>
+<dd>Stop a running program.</dd>
 </dl>
 </div>
 <div class="section" id="debug-menu-shell-window-only">
@@ -703,7 +705,7 @@
 The Python Software Foundation is a non-profit corporation.
 <a href="https://www.python.org/psf/donations/">Please donate.</a>
 <br />
- Last updated on Aug 30, 2016.
+ Last updated on Sep 12, 2016.
 <a href="../bugs.html">Found a bug</a>?
 <br />
 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.6.
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /