summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/grep.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-12-04 06:36:40 (GMT)
committerGitHub <noreply@github.com>2023-12-04 06:36:40 (GMT)
commite5b0db0315941b968ebcc2414bfcdd2da44fd3c2 (patch)
treeb5057747f6a695b5e1033ccce765e63d5ab5a077 /Lib/idlelib/grep.py
parent5a1b5316af648ae79bb91f28253b6272bbbd2886 (diff)
downloadcpython-e5b0db0315941b968ebcc2414bfcdd2da44fd3c2.zip
cpython-e5b0db0315941b968ebcc2414bfcdd2da44fd3c2.tar.gz
cpython-e5b0db0315941b968ebcc2414bfcdd2da44fd3c2.tar.bz2
gh-66819: More IDLE htest updates(4) (#112686)
Mostly double spacing before 'if __name__...'.
Diffstat (limited to 'Lib/idlelib/grep.py')
-rw-r--r--Lib/idlelib/grep.py6
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)