setTextColor()
Set the button's text Color.
This changes only the color of the text. To change the button's background color, use setColor().
Parameters
Once an object button has been created, you can use the following functions:
button.setTextColor()
button.setTextColor(color)
| Parameter | Type | Default | Description |
|---|---|---|---|
color |
Color |
None |
The new text color. If omitted, a color-selection dialog opens. |