A text attribute for text with formatting attributes.

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

Instance Variable attrname Text attribute name. (type: str)
Instance Variable attrvalue Text attribute value.
Method __init__ Undocumented
Method __neg__ Undocumented
Method serialize Serialize the text attribute and its children.

Inherited from FancyEqMixin (via _Attribute):

Method __eq__ Undocumented
Method __ne__ Undocumented

Inherited from FancyEqMixin (via _Attribute):

Method __eq__ Undocumented
Method __ne__ Undocumented
attrname =
Text attribute name. (type: str)
attrvalue =
Text attribute value.
def __init__(self, attrname, attrvalue): (source)
def __neg__(self): (source)
Undocumented
def serialize(self, write, attrs, attributeRenderer): (source)

Serialize the text attribute and its children.

Parameterswritecallable, 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.
attributeRendererName of the method on attrs that should be called to render the attributes during serialization. Defaults to 'toVT102'. (type: str)
API Documentation for Twisted, generated by pydoctor at 2017-06-11 10:59:01.