summaryrefslogtreecommitdiff
path: root/Lib/idlelib/config.py
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2019-06-17 22:24:10 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2019-06-17 22:24:10 -0400
commit201bc2d18b60adb05810d2a6ab396047bc527088 (patch)
tree1514619817f5282089691111547166b16cd4af56 /Lib/idlelib/config.py
parent7fb3190bcf9872dca3d83a7f9e3e65cbce8be9ed (diff)
downloadcpython-git-201bc2d18b60adb05810d2a6ab396047bc527088.tar.gz
bpo-5680: IDLE: Customize running a module (GH-13763)
The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
Diffstat (limited to 'Lib/idlelib/config.py')
-rw-r--r--Lib/idlelib/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/config.py b/Lib/idlelib/config.py
index 12113c19c0..2233dacd66 100644
--- a/Lib/idlelib/config.py
+++ b/Lib/idlelib/config.py
@@ -591,7 +591,9 @@ class IdleConf:
former_extension_events = { # Those with user-configurable keys.
'<<force-open-completions>>', '<<expand-word>>',
'<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>',
- '<<run-module>>', '<<check-module>>', '<<zoom-height>>'}
+ '<<run-module>>', '<<check-module>>', '<<zoom-height>>',
+ '<<run-custom>>',
+ }
def GetCoreKeys(self, keySetName=None):
"""Return dict of core virtual-key keybindings for keySetName.
@@ -658,6 +660,7 @@ class IdleConf:
'<<flash-paren>>': ['<Control-Key-0>'],
'<<format-paragraph>>': ['<Alt-Key-q>'],
'<<run-module>>': ['<Key-F5>'],
+ '<<run-custom>>': ['<Shift-Key-F5>'],
'<<check-module>>': ['<Alt-Key-x>'],
'<<zoom-height>>': ['<Alt-Key-2>'],
}