Skip to content

setText()

Set the button's text.

Parameters

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

button.setText(text)
Parameter Type Default Description
text str required The new text to show on the button.