8.13.16 InputRadio class: A radiobuttons InputItem.

The InputRadio class has this constructor:

class InputRadio( name,choices,default,direction='h')
Creates radiobuttons for the selection of a value from a list.

choices is a list/tuple of possible values. default is the initial/default choice. If default is not in the choices list, it is prepended. If default is None, the first item of choices is taken as the default.

The choices are presented to the user as a hbox with radio buttons, of which the default will initially be pressed. If direction == 'v', the options are in a vbox.

InputRadio objects have the following methods:

value( )
Return the widget's value.

setValue( val)
Change the widget's value.