setText()
Set the checkbox's text.
Parameters
Once an object checkbox has been created, you can use the following functions:
checkbox.setText(text)
checkbox.setText(text, resize)
| Parameter | Type | Default | Description |
|---|---|---|---|
text |
str |
required | The new text to show beside the checkbox. |
resize |
bool |
True |
True to resize the checkbox to fit the new text, or False to keep its current size. |