[Urwid] Best way to update a Frame "footer"

Sébastien Pierre sebastien at xprima.com
Fri Jul 14 12:10:54 EDT 2006


On Thu, 13 Jul 2006 21:35:58 -0400
Ian Ward <ian at excess.org> wrote:

> Put your "onFocus" code after the keyboard input handling.
> 
> Right now you're getting a delay because the text in the footer is set 
> *after* drawing the result of a keypress, so your footer text won't 
> appear until the input times out and your program goes through the main 
> loop again.

That worked... and was a really simple solution ! So now my main loop
does the following:

 - Update the state of widgets according to focus
 - Draws the screen
 - Get the input
 - process the key

Thanks to you and Rebecca :)

  -- Sébastien




More information about the Urwid mailing list