setText(self,
text,
lineNum=0,
fontSize=None,
indent=0)
| source code
|
Displays text at given line left adjusted.
The old text of this line is erased, other text is not modified
The line distance is defined by the font size (text height + 1).
If no text is attributed to a line, the line is considered to consist of a single space
character with the font size of the preceeding line.
The position of the text cursor is not modified.
Text separated by
is considered as a multiline text. In this case lineNum is the line number of the
first line.
@param text: the text to display. If emtpy, text with a single space character is assumed.
@param lineNum: the line number where to display the text (default: 0)
@param fontSize: the size of the font (default: None, set to current font size)
@indent: the line indent in pixels (default: 0)
|