#NEWLINE# def onClick( self , sender ) : #NEWLINE# #INDENT# if ( self . collapsed == False ) : #NEWLINE# #INDENT# self . collapse . setUrl ( './tree_closed.gif' ) #NEWLINE# self . collapsed = True #NEWLINE# self . caption . setVisible ( False ) #NEWLINE# if self . child : #NEWLINE# #INDENT# self . child . setVisible ( False ) #NEWLINE# #UNINDENT# self . setWidth ( self . collapsed_width ) #NEWLINE# self . sink . setCollapserWidth ( self , self . collapsed_width ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . collapse . setUrl ( './images/cancel.png' ) #NEWLINE# self . collapsed = False #NEWLINE# self . caption . setVisible ( True ) #NEWLINE# if self . child : #NEWLINE# #INDENT# self . child . setVisible ( True ) #NEWLINE# #UNINDENT# self . setWidth ( sender . uncollapsed_width ) #NEWLINE# self . sink . setCollapserWidth ( self , self . uncollapsed_width )