#NEWLINE# def _scale_mode_changed( self , value ) : #NEWLINE# #INDENT# if ( ( self . module is None ) or ( len ( self . inputs ) == 0 ) or ( self . glyph_type == 'tensor' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . _updating = True #NEWLINE# try : #NEWLINE# #INDENT# glyph = self . glyph #NEWLINE# glyph . scale_mode = value #NEWLINE# mm = self . module . module_manager #NEWLINE# if ( glyph . scale_mode == 'scale_by_scalar' ) : #NEWLINE# #INDENT# glyph . range = tuple ( mm . scalar_lut_manager . data_range ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# glyph . range = tuple ( mm . vector_lut_manager . data_range ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# self . _updating = False #NEWLINE# self . render ( )