<s> """<STR_LIT>""" <EOL> from kraken . core . objects . attributes . attribute import Attribute <EOL> from kraken . core . kraken_system import ks <EOL> class ColorAttribute ( Attribute ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , name , value = None , parent = None ) : <EOL> super ( ColorAttribute , self ) . __init__ ( name , value = value , parent = parent ) <EOL> if value is None : <EOL> value = { '<STR_LIT:r>' : <NUM_LIT:0.5> , '<STR_LIT:g>' : <NUM_LIT:0.5> , '<STR_LIT:b>' : <NUM_LIT:0.5> , '<STR_LIT:a>' : <NUM_LIT:1.0> } <EOL> self . setValue ( value ) <EOL> def setValue ( self , color ) : <EOL> """<STR_LIT>""" <EOL> assert isinstance ( r , Color ) , "<STR_LIT>" <EOL> super ( ColorAttribute , self ) . setValue ( value ) <EOL> return True <EOL> def getRTVal ( self ) : <EOL> """<STR_LIT>""" <EOL> return ks . rtVal ( '<STR_LIT>' , self . _value ) <EOL> def getDataType ( self ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT>' </s>
