setText()
Set the label's text.
Parameters
Once an object label has been created, you can use the following function:
label.setText(text)
| Parameter | Type | Default | Description |
|---|---|---|---|
text |
str |
required | The new text. If it is longer than the label can fit, it is truncated. |