8.13.17 InputPush class: A pushbuttons InputItem.

The InputPush class has this constructor:

class InputPush( name,choices,default=None,direction='h')
Creates pushbuttons 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.

InputPush objects have the following methods:

setText( text,index=0)
Change the text on button index.

setIcon( icon,index=0)
Change the icon on button index.

value( )
Return the widget's value.

setValue( val)
Change the widget's value.