mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-66819: More IDLE htest updates(4) (#112686)
Mostly double spacing before 'if __name__...'.
This commit is contained in:
parent
5a1b5316af
commit
e5b0db0315
25 changed files with 62 additions and 34 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue