diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-17 05:31:35 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-17 05:31:35 (GMT) |
commit | cd567365c9f95cf005d6bb7c1da7946b68a43ab4 (patch) | |
tree | f26214676f8957a3e89451cc4cb54239bd5ab113 /Lib/idlelib/EditorWindow.py | |
parent | 9a6f8e18662c67cd41bf54ef3b8dbf2b7f5a3aeb (diff) | |
download | cpython-cd567365c9f95cf005d6bb7c1da7946b68a43ab4.zip cpython-cd567365c9f95cf005d6bb7c1da7946b68a43ab4.tar.gz cpython-cd567365c9f95cf005d6bb7c1da7946b68a43ab4.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 1056552..bdf4a1a 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__': from idlelib.idle_test.htest import run |