diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-04 07:08:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 07:08:01 (GMT) |
commit | 838e968e694f4542fe6cd5a7f9a4d5888094de08 (patch) | |
tree | dffe31c967fa33bede2fc322d8f39550fefe8596 /Lib/idlelib/grep.py | |
parent | 55a4bb99fc4ba85ad7fe2ca5ac99718eace20641 (diff) | |
download | cpython-838e968e694f4542fe6cd5a7f9a4d5888094de08.zip cpython-838e968e694f4542fe6cd5a7f9a4d5888094de08.tar.gz cpython-838e968e694f4542fe6cd5a7f9a4d5888094de08.tar.bz2 |
[3.12] gh-66819: More IDLE htest updates(4) (GH-112686) (#112688)
Mostly double spacing before 'if __name__...'.
(cherry picked from commit e5b0db0315941b968ebcc2414bfcdd2da44fd3c2)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/grep.py')
-rw-r--r-- | Lib/idlelib/grep.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/idlelib/grep.py b/Lib/idlelib/grep.py index 1251359..ef14349 100644 --- a/Lib/idlelib/grep.py +++ b/Lib/idlelib/grep.py @@ -204,15 +204,17 @@ def _grep_dialog(parent): # htest # frame.pack() text = Text(frame, height=5) text.pack() + text.insert('1.0', 'import grep') def show_grep_dialog(): - text.tag_add(SEL, "1.0", END) + text.tag_add(SEL, "1.0", '1.end') grep(text, flist=flist) - text.tag_remove(SEL, "1.0", END) + text.tag_remove(SEL, "1.0", '1.end') button = Button(frame, text="Show GrepDialog", command=show_grep_dialog) button.pack() + if __name__ == "__main__": from unittest import main main('idlelib.idle_test.test_grep', verbosity=2, exit=False) |