SetTextContents Method (Python)
Sets the contents of the associated text output item, replacing
any existing content. The value can be specified as plain text, HTML,
or rich text format. For HTML, embed markup in a <html></html>
block. For rich text format, specify the string as a raw string to
avoid unintentional escape sequences. For multiple lines, use "\n"
to specify line breaks.
Syntax
SpssTextItem.SetTextContents(contents)