#NEWLINE# def reset( self , value_max = None ) : #NEWLINE# #INDENT# 'Reset the value to 0 and the value max to a given value.' #NEWLINE# self . _value = 0 #NEWLINE# if ( value_max is not None ) : #NEWLINE# #INDENT# self . _value_max = value_max