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

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


Sitti Amarittapark wrote on 2010-07-07 13:44:
> Hi all,
> 
> I got the following exception in urwid. I found that I can avoid the
> problem by resizing the ssh window. However I don't have that option
> when running the code in the 80 columns x 24 lines console. Is there
> anything I can do to avoid the problem? Did I do anything wrong? I am
> using v 0.9.9.1.

Certainly a bug.  I believe it's related to the new default value for
width in the padding constructor.  The 'pack' code is not fully
completed, and it shouldn't have been made the default.  A work-around
would be:

Padding(w, width=('relative', 100), left=1, right=1)

Ian



More information about the Urwid mailing list