(self, **styles)
Set multiple styles on the CSS definition.
Set multiple styles on the CSS definition.
Set multiple styles on the CSS definition .
def update(self, **styles):
        "Set multiple styles on the CSS definition."
        for name, value in styles.items():
            name = name.replace('-', '_')
            if name not in _CSS_PROPERTIES:
                raise NameError("Unknown CSS style '%s'" % name)

            if value is None:
                delattr(self, name)
            else:
                setattr(self, name, value)
def update ( self , * * styles ) : for name , value in styles . items ( ) : name = name . replace ( '-' , '_' ) if name not in _CSS_PROPERTIES : raise NameError ( "Unknown CSS style '%s'" % name ) if value is None : delattr ( self , name ) else : setattr ( self , name , value )