def button(t, fn, data=None): w = urwid.Button(t, fn, data) w = urwid.AttrWrap(w, 'button normal', 'button select') return w