insert_rule method

insert_rule

Used to insert a new rule into the style sheet. The new rule now becomes part of the cascade.

Returns

The inserted index

def insert_rule(self, rule, index):
    ...
ParameterTypeDescription
rulestrThe style rule.
indexintThe rule index.

See Also