[Urwid] ListBoxError - focus_canvas.rows() != focus_rows

Ian Ward ian at excess.org
Wed Jul 7 20:32:08 EDT 2010


Sitti Amarittapark wrote on 2010-07-07 19:54:
> I think that found the answer.
> 
> It is in decoration.py. Padding.rows() causes this exception. Looks
> like the calculation doesn't include the padding margin. I made the
> following change and it works. I am not sure if this enough as a
> general fix. It doesn't do anything with the CLIP case yet.

Your fix looks good.  I will apply it (though next time a diff -u or
hg/git diff would be preferred)

CLIP should be fine.  That case is only for fixed widgets whose size
can't be affected.

Thanks!

Ian



More information about the Urwid mailing list