def _set_radio_button(idx, params):
 radio = params['fig_selection'].radio
 radio.circles[radio._active_idx].set_facecolor((1.0, 1.0, 1.0, 1.0))
 radio.circles[idx].set_facecolor((0.0, 0.0, 1.0, 1.0))
 _radio_clicked(radio.labels[idx]._text, params)

def _set_radio_button ( idx , params ) : radio = params [ 'fig_selection' ] . radio radio . circles [ radio . _active_idx ] . set_facecolor ( ( 1.0 , 1.0 , 1.0 , 1.0 ) ) radio . circles [ idx ] . set_facecolor ( ( 0.0 , 0.0 , 1.0 , 1.0 ) ) _radio_clicked ( radio . labels [ idx ] . _text , params )
helper for setting radio button .