#NEWLINE# def test( ) : #NEWLINE# #INDENT# 'Test make_text_box(), make_form_entry(), flatten(), boolean().' #NEWLINE# import sys #NEWLINE# root = Tk ( ) #NEWLINE# ( entry , eframe ) = make_form_entry ( root , 'Boolean:' ) #NEWLINE# ( text , tframe ) = make_text_box ( tframe ) #NEWLINE# def enter( event , entry = entry , text = text ) : #NEWLINE# #INDENT# s = ( ( boolean ( entry . get ( ) ) and '\nyes' ) or '\nno' ) #NEWLINE# text . insert ( 'end' , s ) #NEWLINE# #UNINDENT# entry . bind ( '<Return>' , enter ) #NEWLINE# entry . insert ( END , flatten ( sys . argv ) ) #NEWLINE# root . mainloop ( )