diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-27 02:05:10 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-27 02:05:10 (GMT) |
| commit | 68a53c5d3964ae2f4658491822f83cf36510f39b (patch) | |
| tree | 6124e372ec80523d1718af3882c1b811febf67c5 /Lib/idlelib/idle_test/htest.py | |
| parent | 754a5c1a1d8cf0b3d61fb4552c57350b0d849089 (diff) | |
| download | cpython-68a53c5d3964ae2f4658491822f83cf36510f39b.zip cpython-68a53c5d3964ae2f4658491822f83cf36510f39b.tar.gz cpython-68a53c5d3964ae2f4658491822f83cf36510f39b.tar.bz2 | |
Issue #27380: IDLE: add base Query dialog, with ttk widgets and subclass
SectionName. These split class GetCfgSectionNameDialog from
configSectionNameDialog.py, temporarily renamed config_sec.py in 3.7.9a2.
More Query subclasses are planned.
Diffstat (limited to 'Lib/idlelib/idle_test/htest.py')
| -rw-r--r-- | Lib/idlelib/idle_test/htest.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py index 701f4d9..d809d30 100644 --- a/Lib/idlelib/idle_test/htest.py +++ b/Lib/idlelib/idle_test/htest.py @@ -137,18 +137,6 @@ _editor_window_spec = { "Best to close editor first." } -GetCfgSectionNameDialog_spec = { - 'file': 'config_sec', - 'kwds': {'title':'Get Name', - 'message':'Enter something', - 'used_names': {'abc'}, - '_htest': True}, - 'msg': "After the text entered with [Ok] is stripped, <nothing>, " - "'abc', or more that 30 chars are errors.\n" - "Close 'Get Name' with a valid entry (printed to Shell), " - "[Cancel], or [X]", - } - GetHelpSourceDialog_spec = { 'file': 'config_help', 'kwds': {'title': 'Get helpsource', @@ -245,6 +233,17 @@ _percolator_spec = { "Test for actions like text entry, and removal." } +Query_spec = { + 'file': 'query', + 'kwds': {'title':'Query', + 'message':'Enter something', + '_htest': True}, + 'msg': "Enter with <Return> or [Ok]. Print valid entry to Shell\n" + "Blank line, after stripping, is ignored\n" + "Close dialog with valid entry, [Cancel] or [X]", + } + + _replace_dialog_spec = { 'file': 'replace', 'kwds': {}, |
