class documentation

A text attribute for text with formatting attributes.

The unary minus operator returns the inverse of this attribute, where that makes sense.

Method __init__ Undocumented
Method __neg__ Undocumented
Method serialize Serialize the text attribute and its children.
Class Variable compareAttributes Undocumented
Instance Variable attrname Text attribute name.
Instance Variable attrvalue Text attribute value.

Inherited from _Attribute:

Method __getitem__ Undocumented
Method __repr__ Undocumented
Instance Variable children Child attributes.

Inherited from FancyEqMixin (via _Attribute):

Method __eq__ Undocumented
Method __ne__ Undocumented
def __init__(self, attrname, attrvalue):
def __neg__(self):

Undocumented

def serialize(self, write, attrs, attributeRenderer):

Serialize the text attribute and its children.

Parameters
writecallable, taking one str argument, called to output a single text attribute at a time.
attrsA formatting state instance used to determine how to serialize the attribute children.
attributeRenderer:strName of the method on attrs that should be called to render the attributes during serialization. Defaults to 'toVT102'.
compareAttributes: tuple[str, ...] =
attrname: str =

Text attribute name.

attrvalue =

Text attribute value.