From: Terry Jan Reedy Date: Mon, 12 Sep 2016 05:49:55 +0000 (-0400) Subject: Issue #15308: Add 'interrupt execution' (^C) to Shell menu. X-Git-Tag: v2.7.13rc1~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87bcc1d6460f05600d787ccf5a8eba49c08ed46b;p=python Issue #15308: Add 'interrupt execution' (^C) to Shell menu. Patch by Roger Serwy, updated by Bayard Randel. --- diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index fa1e979835..34f9a899ec 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -222,6 +222,9 @@ View Last Restart 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 index 862e6ab561..2fd8532dc1 100644 --- a/Lib/idlelib/Bindings.py +++ b/Lib/idlelib/Bindings.py @@ -67,6 +67,8 @@ menudefs = [ ('shell', [ ('_View Last Restart', '<>'), ('_Restart Shell', '<>'), + None, + ('_Interrupt Execution', '<>'), ]), ('debug', [ ('_Go to File/Line', '<>'), diff --git a/Lib/idlelib/README.txt b/Lib/idlelib/README.txt index 7bf74c0fc4..bc169c8800 100644 --- a/Lib/idlelib/README.txt +++ b/Lib/idlelib/README.txt @@ -161,14 +161,15 @@ Edit 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 index efd16233ea..1c4598bfd5 100644 --- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -238,6 +238,8 @@ line.
Scroll the shell window to the last Shell restart.
Restart Shell
Restart the shell to clean the environment.
+
Interrupt Execution
+
Stop a running program.
@@ -703,7 +705,7 @@ are currently:

The Python Software Foundation is a non-profit corporation. Please donate.
- Last updated on Aug 30, 2016. + Last updated on Sep 12, 2016. Found a bug?
Created using Sphinx 1.3.6.