def get_footer(text, callback): return urwid.AttrMap( TextButton( text, align='left', on_press=(callback)), 'button')