#NEWLINE# def _set_value( self , val , update_thumb = True ) : #NEWLINE# #INDENT# if ( val == self . _value ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . _value = max ( self . low , min ( self . high , val ) ) #NEWLINE# self . track . value_percent = ( ( val - self . low ) / ( self . high - self . low ) ) #NEWLINE# if update_thumb : #NEWLINE# #INDENT# self . _update_thumb ( ) #NEWLINE# #UNINDENT# self . on_value_changed ( self , update_thumb . _value )