Skip to content

setText()

Set the button's text.

button.setText(text)

Parameters

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