setBackgroundColor()
Set the toggle's background Color.
Parameters
Once an object toggle has been created, you can use the following functions:
toggle.setBackgroundColor()
toggle.setBackgroundColor(color)
| Parameter | Type | Default | Description |
|---|---|---|---|
color |
Color |
None |
The new background color. If omitted, a color-selection dialog opens. |