#NEWLINE# def set_progress( self , progress ) : #NEWLINE# #INDENT# assert ( progress >= 0.0 ) #NEWLINE# assert ( progress <= 1.0 ) #NEWLINE# self . _progress = progress #NEWLINE# if ( self . window is not None ) : #NEWLINE# #INDENT# self . window . invalidate_rect ( progress . allocation , True )