def create_radio_button(self, g, name, font, fn): w = urwid.RadioButton(g, name, False, on_state_change=fn) w.font = font w = urwid.AttrWrap(w, 'button normal', 'button select') return w