Skip to content

setText()

Set the label's text.

Parameters

Once an object label has been created, you can use the following functions:

label.setText(text)
label.setText(text, resize)
Parameter Type Default Description
text str required The new text.
resize bool True True to resize the label to fit the new text, or False to keep its current size (text that does not fit is cut off).