#NEWLINE# def attachToElement( self , element , widget ) : #NEWLINE# #INDENT# events = DOM . getEventsSunk ( widget . getElement ( ) ) #NEWLINE# widget . unsinkEvents ( events ) #NEWLINE# widget . setElement ( element ) #NEWLINE# widget . sinkEvents ( events ) #NEWLINE# self . adopt ( widget , None ) #NEWLINE# self . children . append ( widget )