diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-19 04:12:00 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-19 04:12:00 (GMT) |
commit | 4345846161e60b660a2b263469e30ef5ec7f91c1 (patch) | |
tree | dfe477ae2c8beeee98f80db135adfc611d43f6e6 /Lib/idlelib/EditorWindow.py | |
parent | 2c5a61f6710b2ab394f0add894d2b3ecaf3c8a7b (diff) | |
download | cpython-4345846161e60b660a2b263469e30ef5ec7f91c1.zip cpython-4345846161e60b660a2b263469e30ef5ec7f91c1.tar.gz cpython-4345846161e60b660a2b263469e30ef5ec7f91c1.tar.bz2 |
Issue #21477: idle htests - lower case function names, other cleanups.
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 634a226..d69eb43 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -108,7 +108,7 @@ class HelpDialog(object): self.parent = None helpDialog = HelpDialog() # singleton instance -def _Help_dialog(parent): # wrapper for htest +def _help_dialog(parent): # wrapper for htest helpDialog.show_dialog(parent) @@ -1711,21 +1711,21 @@ def fixwordbreaks(root): tk.call('set', 'tcl_nonwordchars', '[^a-zA-Z0-9_]') -def _Editor_window(parent): +def _editor_window(parent): root = parent fixwordbreaks(root) - root.withdraw() +## 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.set_close_hook(root.quit) +## edit.text.bind("<<close-all-windows>>", edit.close_event) if __name__ == '__main__': from idlelib.idle_test.htest import run if len(sys.argv) <= 1: - run(_Help_dialog) - run(_Editor_window) + run(_help_dialog) + run(_editor_window) |