#NEWLINE# def _scene_changed( self , value ) : #NEWLINE# #INDENT# sbw = self . scalar_bar_widget #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( self . interactor is not None ) : #NEWLINE# #INDENT# sbw . off ( ) #NEWLINE# #UNINDENT# value . add_widgets ( sbw , enabled = False ) #NEWLINE# if self . show_scalar_bar : #NEWLINE# #INDENT# sbw . on ( ) #NEWLINE# #UNINDENT# self . _foreground_changed_for_scene ( None , value . foreground )