Skip to content

setText()

Set the button's text.

Parameters

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

button.setText(text)
button.setText(text, resize)
Parameter Type Default Description
text str required The new text to show on the button.
resize bool True True to resize the button to fit the new text, or False to keep its current size.