def handle_input(key):
if key in ('q', 'Q'):
print 'exiting on q'
raise urwid.ExitMainLoop()
elif key in ('1'):
main_loop.widget = urwid.LineBox(urwid.Filler(urwid.Text('The second top window', align='right')))
评论列表
文章目录