mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #21477: Idle htest: modify run; add more tests.
Patch by Saimadhav Heblikar. 2.7 version will follow.
This commit is contained in:
parent
e1d54e5f8e
commit
a2fc99ecea
9 changed files with 160 additions and 79 deletions
|
@ -1705,18 +1705,15 @@ def fixwordbreaks(root):
|
|||
def _editor_window(parent):
|
||||
root = parent
|
||||
fixwordbreaks(root)
|
||||
## root.withdraw()
|
||||
if sys.argv[1:]:
|
||||
filename = sys.argv[1]
|
||||
else:
|
||||
filename = None
|
||||
macosxSupport.setupApp(root, None)
|
||||
edit = EditorWindow(root=root, filename=filename)
|
||||
## edit.set_close_hook(root.quit)
|
||||
## edit.text.bind("<<close-all-windows>>", edit.close_event)
|
||||
edit.text.bind("<<close-all-windows>>", edit.close_event)
|
||||
parent.mainloop()
|
||||
|
||||
if __name__ == '__main__':
|
||||
from idlelib.idle_test.htest import run
|
||||
if len(sys.argv) <= 1:
|
||||
run(_help_dialog)
|
||||
run(_editor_window)
|
||||
run(_help_dialog, _editor_window)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue