#NEWLINE# def _on_timeout( self , data = None ) : #NEWLINE# #INDENT# if ( self . _start_time <= 0.0 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( self . window != None ) : #NEWLINE# #INDENT# delta = ( time . time ( ) - self . _start_time ) #NEWLINE# if ( delta > self . _anim_period_seconds ) : #NEWLINE# #INDENT# delta = self . _anim_period_seconds #NEWLINE# self . _start_time = time . time ( ) #NEWLINE# #UNINDENT# fraction = ( delta / self . _anim_period_seconds ) #NEWLINE# self . _factor = math . sin ( ( fraction * math . pi ) ) #NEWLINE# #UNINDENT# self . window . invalidate_rect ( self . allocation , True ) #NEWLINE# return True