[Urwid] Enable/disable buttons?

Yasir Assam mail at endlessvoid.com
Wed Dec 9 23:51:59 EST 2009

> Yasir Assam wrote:
>>> You might try calling set_focus on the GridFlow widget to select the
>>> cancel button.  I believe if the widget in focus is not selectable then
>>> the GridFlow assumes none of the widgets it contains are.
>> Where do I call set_focus()?
> The GridFlow object is called gf in your example.  try:
>   gf.set_focus(1)
Thanks. I misunderstood you - I thought set_focus would put the cursor 
there as soon as it's called, but it doesn't.

-------------- next part --------------

No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.5.426 / Virus Database: 270.14.100/2554 - Release Date: 12/09/09 07:32:00

More information about the Urwid mailing list