II. GUI Basics
Chapter 10. Widgets Attributes
Transparent (Opaque)
Method signature
setOpaque = "
[bool]"
[bool] the default is
true
Opaque is used to set widget's transparency, if opaque is set to 'false', then the elements behind the widget are visible and Foreground highlight is set
automatically to white.
NOTE: This feature is useful for labels.
Examples
In this example we will be using a button widget. Because opaque is set to false the button has the same
color as a background.
.. setOpaque ="false"
Back
Next