Your run() function only handles mouse and resize events. Try something like this:

    for k in keys:
        if urwid.is_mouse_event(k):
            event, button, col, row = k
            complete.mouse_event(size,event,button,col,row,focus=True)
        elif k == "window resize":
            size = ui.get_cols_rows()
        else:
            size = ui.get_cols_rows()
            complete.keypress(size, k)

Greg


_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to