feynml.sheet.SheetHandler

class feynml.sheet.SheetHandler[source]

Bases: object

Sheet class.

__init__()

Methods

__init__()

add_rule(rule)

Add a rule to the style.

add_rules(rules)

Add rules to the style.

get_sheet()

Return the sheet.

get_sheets()

Return the sheet.

get_style(obj[, xml])

Get the style of an object.

get_style_property(obj, property_name[, xml])

Get a style property of an object.

with_rule(rule)

Replace rules of the style.

with_rules(rules)

Replace rules of the style.

with_sheet(sheet)

Return the object with the sheet.

Attributes

default_sheet

add_rule(rule: str)[source]

Add a rule to the style.

add_rules(rules: str)[source]

Add rules to the style.

get_sheet() CSSStyleSheet[source]

Return the sheet.

get_sheets() List[CSSStyleSheet][source]

Return the sheet.

get_style(obj, xml: XML | None = None) CSSStyleDeclaration[source]

Get the style of an object.

This is prefered over accessing the style attribute directly, since it includes class and pdgid definitions.

get_style_property(obj, property_name, xml: XML | None = None) str[source]

Get a style property of an object.

with_rule(rule: str)[source]

Replace rules of the style.

with_rules(rules: str)[source]

Replace rules of the style.

with_sheet(sheet)[source]

Return the object with the sheet.