summaryrefslogtreecommitdiff
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-05-25 18:44:05 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2014-05-25 18:44:05 -0400
commita2fc99eceae7b3dacc1e7280cc01c3b877ce55ab (patch)
treec6593cf545a51196117abd00623081007bf2ce67 /Lib/idlelib/EditorWindow.py
parente1d54e5f8e63cf8a464a1c4c3d42e4f3a107b83f (diff)
downloadcpython-git-a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab.tar.gz
Issue #21477: Idle htest: modify run; add more tests.
Patch by Saimadhav Heblikar. 2.7 version will follow.
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 6b590235f0..f3df8eacc9 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -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)