Bambookit Home    Bambookit GUI Tutorial

Back    Next   

II. GUI Basics

Chapter 9. Widgets Styles

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.


In this example we will be using a button widget

.. setBackground ="339999"

Back    Next