summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
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 6b59023..f3df8ea 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)