diff options
| author | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-06-18 02:24:10 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-06-18 02:24:10 (GMT) |
| commit | 201bc2d18b60adb05810d2a6ab396047bc527088 (patch) | |
| tree | 1514619817f5282089691111547166b16cd4af56 /Lib/idlelib/idle_test/htest.py | |
| parent | 7fb3190bcf9872dca3d83a7f9e3e65cbce8be9ed (diff) | |
| download | cpython-201bc2d18b60adb05810d2a6ab396047bc527088.zip cpython-201bc2d18b60adb05810d2a6ab396047bc527088.tar.gz cpython-201bc2d18b60adb05810d2a6ab396047bc527088.tar.bz2 | |
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/idle_test/htest.py')
| -rw-r--r-- | Lib/idlelib/idle_test/htest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py index 6e3398e..6ce8cc8 100644 --- a/Lib/idlelib/idle_test/htest.py +++ b/Lib/idlelib/idle_test/htest.py @@ -108,6 +108,15 @@ _color_delegator_spec = { "The default color scheme is in idlelib/config-highlight.def" } +CustomRun_spec = { + 'file': 'query', + 'kwds': {'title': 'Custom Run Args', + '_htest': True}, + 'msg': "Enter with <Return> or [Ok]. Print valid entry to Shell\n" + "Arguments are parsed into a list\n" + "Close dialog with valid entry, <Escape>, [Cancel], [X]" + } + ConfigDialog_spec = { 'file': 'configdialog', 'kwds': {'title': 'ConfigDialogTest', |
