II. GUI Basics
Background Color
Method signature
setBackground = "
[color]"
[color] is a 6 digit hexadecimal value
Like fonts, color settings are inherited by widgets from their container parents. Therefore, if you set a background color for the
widget-containers, that color applies to the background color of all widgets and nested containers, unless you override the settings.
This also means that if you override the color setting of a nested container, then each of its widgets inherits the new color of that container.
Examples
In this example we will be using a button widget
.. setBackground ="339999"
Back
Next