Bambookit Home    Bambookit GUI Tutorial


II. GUI Basics

Chapter 10. Widgets Attributes


Method signature

setEnabled = "[bool]"
[bool] the default is true

A disabled widget does not respond to any mouse click. The widget is disabled so the user cannot interact with it. Also changes the color to light gray to visually represent a disabled widget.

NOTE: If the parent is set to false all its children will be always false. You won't be able to override this value for children.


In this example we will be using a widget-container with two buttons children.

.. setEnabled="true"

.. setEnabled="false"