#NEWLINE# def update_layers( self ) : #NEWLINE# #INDENT# if ( self . artist is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# r = self . cid [ 'red' ] . component #NEWLINE# g = self . cid [ 'green' ] . component #NEWLINE# b = self . cid [ 'blue' ] . component #NEWLINE# changed = ( ( b . artist . r is not r ) or ( self . artist . g is not g ) or ( self . artist . b is not b ) ) #NEWLINE# self . artist . r = r #NEWLINE# self . artist . g = g #NEWLINE# self . artist . b = b #NEWLINE# if changed : #NEWLINE# #INDENT# self . colors_changed . emit ( ) #NEWLINE# #UNINDENT# self . artist . update ( ) #NEWLINE# self . artist . redraw ( )