Hi all,
just recently discovered urwid - and I got to admit it's pretty
amazing. I began to write my own MUA to teach myself, however I
stumbled upon a particular problem when creating an email thread
viewer (a ListBox), where each reply (Text) is indented slightly
further with the help of Padding.
However, if the Padding causes any extra rows to the Text being
rendered, ListBox fails with "listbox calculated X rows but rendered
Y"
Here's a minimal example to reproduce the bug:
import urwid
screen = urwid.raw_display.Screen()
contents=[]
text = urwid.Text("This is a rather long text! "*100)
padding = urwid.Padding(text,left=15)
contents.append(padding)
body = urwid.ListBox(urwid.SimpleListWalker(contents))
frame = urwid.Frame(body)
loop = urwid.MainLoop(frame,[],screen=screen)
loop.run()
Any comments, thoughts or ideas how to fix?
Thanks,
Matti Eiden
_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid