#NEWLINE# def main( ) : #NEWLINE# #INDENT# root = RootPanel ( ) #NEWLINE# tree = Tree ( ) #NEWLINE# cb1 = CheckBox ( 'test 1' ) #NEWLINE# cb1 . addClickListener ( onCb1 ) #NEWLINE# root . add ( cb1 ) #NEWLINE# cb2 = CheckBox ( 'test 2' ) #NEWLINE# cb2 . addClickListener ( onCb2 ) #NEWLINE# item = TreeItem ( cb2 ) #NEWLINE# tree . addItem ( item ) #NEWLINE# root . add ( tree )