#NEWLINE# def update_object_from_swatch( self , color_text ) : #NEWLINE# #INDENT# ' Updates the object trait when a color swatch is clicked.\n        ' #NEWLINE# color = QtGui . QColor ( * [ int ( part ) for part in color_text . split ( ',' ) ] ) #NEWLINE# self . value = self . factory . from_qt4_color ( color ) #NEWLINE# self . update_editor ( )