class documentation

class twisted.python._textattributes._ColorAttr(_Attribute): (source)

Known subclasses: twisted.python._textattributes._BackgroundColorAttr, twisted.python._textattributes._ForegroundColorAttr

View In Hierarchy

Generic color attribute.

ParameterscolorColor value.
groundForeground or background attribute name.
Class Variable compareAttributes Undocumented
Method __init__ Undocumented
Instance Variable color Undocumented
Instance Variable ground Undocumented
Method serialize Serialize the text attribute and its children.

Inherited from _Attribute:

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

Inherited from FancyEqMixin (via _Attribute):

Method __eq__ Undocumented
Method __ne__ Undocumented
compareAttributes = (source)
color = (source)

Undocumented

ground = (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 20.12.1 at 2021-02-28 19:53:36.