#NEWLINE# def on_value( self , * l ) : #NEWLINE# #INDENT# if self . currentObj : #NEWLINE# #INDENT# if ( abs ( l [ 1 ] ) <= 0 ) : #NEWLINE# #INDENT# self . currentObj . anim_delay = ( - 1 ) #NEWLINE# l [ 2 ] . text = ( 'Animation speed: %f FPS' % 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . currentObj . anim_delay = ( 1 / l [ 1 ] ) #NEWLINE# l [ 2 ] . text = ( 'Animation speed: %f FPS' % ( 1 / self . currentObj . anim_delay ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# l [ 0 ] . max = 0 #NEWLINE# l [ 2 ] . text = 'No Image selected'