#NEWLINE# def insert( self , widget , beforeIndex ) : #NEWLINE# #INDENT# widget . removeFromParent ( ) #NEWLINE# tr = DOM . createTR ( ) #NEWLINE# td = DOM . createTD ( ) #NEWLINE# DOM . insertChild ( self . getBody ( ) , tr , beforeIndex ) #NEWLINE# DOM . appendChild ( tr , td ) #NEWLINE# CellPanel . insert ( self , widget , td , self ) #NEWLINE# self . setCellHorizontalAlignment ( widget , self . horzAlign ) #NEWLINE# self . setCellVerticalAlignment ( widget , self . vertAlign )