Checkbox
A type of switch that can be grouped with other checkboxes.
Example:
# The 'value' parameter indicates which checkboxes are on by default
g = gui.Group(name='colors',value=['r','b'])
t = gui.Table()
t.tr()
t.td(gui.Label('Red'))
t.td(gui.Checkbox(g,'r'))
t.tr()
t.td(gui.Label('Green'))
t.td(gui.Checkbox(g,'g'))
t.tr()
t.td(gui.Label('Blue'))
t.td(gui.Checkbox(g,'b'))
Radio
A type of switch that can be grouped with other radio buttons, except
that only one radio button can be active at a time.
Example:
g = gui.Group(name='colors',value='g')
t = gui.Table()
t.tr()
t.td(gui.Label('Red'))
t.td(gui.Radio(g,'r'))
t.tr()
t.td(gui.Label('Green'))
t.td(gui.Radio(g,'g'))
t.tr()
t.td(gui.Label('Blue'))
t.td(gui.Radio(g,'b'))
Tool
Within a Group of Tool widgets only one may be selected at a time.
Example:
g = gui.Group(name='colors',value='g')
t = gui.Table()
t.tr()
t.td(gui.Tool(g,'Red','r'))
t.tr()
t.td(gui.Tool(g,'Green','g'))
t.tr()
t.td(gui.Tool(g,'Blue','b'))