Issue #21477: idle htests - lower case function names, other cleanups.

This commit is contained in:
Terry Jan Reedy 2014-05-19 00:12:10 -04:00
parent ae4bab71e3
commit ab4fd4448a
2 changed files with 26 additions and 27 deletions

View file

@ -79,7 +79,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)
@ -1702,21 +1702,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)