CheckBox (hwx.gui)#
- class CheckBox(text='', **kwds)#
Bases:
Widget
A CheckBox is a bool control with a text label.
# Name
Type
property
property
Example
from hwx import gui # This method is called when the check box is pushed. def onClick(event): output.text = event.value # Below, we'll create a CheckBox. When clicked, the output label will # update to match the value of the check box. button = gui.CheckBox('True or False', command=onClick) output = gui.Label(button.value) frame = gui.HFrame(button, 10, output) show(frame)
- property checked#
Returns and sets if checkbox is checked ot not.
- property text#
Returns and sets the text of the check box.