decode_attributed Function

Defined in pyglet.text

decode_attributed(text)

Create a document directly from some attributed text.

See pyglet.text.formats.attributed for a description of attributed text.

Parameters:text (str) – Attributed text to decode.
Return type:FormattedDocument

Previous topic

DocumentDecodeException

Next topic

decode_html Function