#NEWLINE# def prepareImage( self , url ) : #NEWLINE# #INDENT# img = Image ( ) #NEWLINE# img . __isLoaded = False #NEWLINE# img . addLoadListener ( self ) #NEWLINE# DOM . setEventListener ( img . getElement ( ) , img ) #NEWLINE# DOM . sinkEvents ( img . getElement ( ) , Event . ONLOAD ) #NEWLINE# return img