Hi, I'm new to Urwid (and Python too). I started a python-urwid program to 
essentially display items in two listBox objects as the body in an 
urwid.Frame (the layout is similar to most of IDEs). To have more control in 
listboxes I created a control to display a multicolumn listbox with an 
optional column's header (and in the future with optional horizontal and 
vertical scrollbars).

The new listbox is a urwid.Filler that wrap a simple urwid.ListBox with 
urwid.SimpleListWalker with items implemented as urwid.Text widgets, so the 
listbox is really a simple urwid listbox. If the option 'header_visible' is 
true the widget will be a urwid.Filler that wrap a urwid.Pile with an 
urwid.Text for listbox header in the first row and the previos widgets on 
the second row.

Now, to calculate column widths (configurable) I need to know the width of 
the whole implemented widget (Filler) or at least the width of the contained 
ListBox. This will help in calculating the horizontal scrollbar (if I will 
implement it). For the vertical scrollbar I will need the height of the 
Filler.

thanks




_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to