gh-66819: More IDLE htest updates(4) (#112686)

Mostly double spacing before 'if __name__...'.
This commit is contained in:
Terry Jan Reedy 2023-12-04 01:36:40 -05:00 committed by GitHub
parent 5a1b5316af
commit e5b0db0315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 62 additions and 34 deletions

View file

@ -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)