[Urwid] Keys and focus handling

Fabian Braennstroem f.braennstroem at gmx.de
Thu May 21 14:29:51 EDT 2009


Dear urwid users,

I am starting to take a look at urwid after a quite long brake again... 
so I am still a newbie :-)

I am a bit confused about the handling of button-press reactions and 
setting focus using keys for different widgets. I attached a small 
example. The aim is to show a help text or some more buttons on the 
right green 'box' in the inner-frame as soon as I walk through the 
buttons. The focused is set to the buttons, but as soon as I press one 
of the buttons I would like to focus to the current content of the right 
green column.
It would be nice, if anyone has a hint, how to achieve this!?

Thanks!
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exa2.py
Type: text/x-python
Size: 4023 bytes
Desc: not available
Url : http://lists.excess.org/pipermail/urwid/attachments/20090521/8137956c/attachment.py 


More information about the Urwid mailing list