diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-17 05:31:29 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-17 05:31:29 (GMT) |
commit | cf834769e4f2c3b14c93091334f2334284c9d8c0 (patch) | |
tree | f4d85c8c5c1bb395a9203b32ac48047fb3cc099d /Lib/idlelib/EditorWindow.py | |
parent | 833dfadc07758232d1356e1c8bc09a6b43334e65 (diff) | |
download | cpython-cf834769e4f2c3b14c93091334f2334284c9d8c0.zip cpython-cf834769e4f2c3b14c93091334f2334284c9d8c0.tar.gz cpython-cf834769e4f2c3b14c93091334f2334284c9d8c0.tar.bz2 |
Issue #22629: Revise idle_test.htest, mostly docstring. Start revision of
htests to add # htest # marker for coveragepy and stop tcl errors.
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 2032b65..5770ded 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -1711,7 +1711,8 @@ def fixwordbreaks(root): tk.call('set', 'tcl_nonwordchars', '[^a-zA-Z0-9_]') -def _editor_window(parent): +def _editor_window(parent): # htest # + # error if close master window first - timer event, after script root = parent fixwordbreaks(root) if sys.argv[1:]: @@ -1721,7 +1722,8 @@ def _editor_window(parent): macosxSupport.setupApp(root, None) edit = EditorWindow(root=root, filename=filename) edit.text.bind("<<close-all-windows>>", edit.close_event) - parent.mainloop() + # Does not stop error, neither does following + # edit.text.bind("<<close-window>>", edit.close_event) if __name__ == '__main__': |