SetTextContents Method (Python)
Sets the contents of the associated title 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.
Syntax
SpssTitleItem.SetTextContents(contents)