[Urwid][Fwd: Find focused Edit]
ian at excess.org
Sat Jul 30 11:36:16 EDT 2005
> And I get the help of the former It widget, I mean the one I just
> left, not the current one...
> For example, with two piled Edits named 'hostname' and 'IP', I get the
> hostname help when in IP and IP help when back to hostname.
> To get the good one, I have to play with the keyboard inside the Edit
> (like right, or left keys). How come ? Can I create the keyboard input
> myself, in the program, so that the correct get_focus() event will be
> triggered ?
Your code looks ok. In your run loop are you updating the help text
after the keypress and before drawing? If you update the help text
before the next keypress and after drawing then the former widget's help
text will still be displayed instead of the current one.
More information about the Urwid