[Urwid] listbox
Ian Ward
ian at excess.org
Tue Oct 17 09:49:21 EDT 2006
Rebecca Breu wrote:
> Zitat von Fabian Braennstroem <f.braennstroem at gmx.de>:
>> Do you recommend using the listbox for such file entries at
>> all? I would like to add the size, date and mode of the
>> files in certain regions (columns) of the listbox. It would
>> be some kind of table; e.g. like in Rebecca's 'unicore'.
>> Would be nice, if you got any recommendations!
>
> The ListBox is great! :)
>
> For my "table", I used a Columns widgets with each column containing a
> ListBox widget. So in your case that would be one ListBox with the filenames
> in the first column, one ListBox with the according file sizes in the second
> column etc. This approach gets a little tricky if you want rows of this table
> to be selectable only as a whole, but I could post a stand alone version of the
> Table widget I am using in the unicore configuration stuff, if you are
> interested.
Wouldn't it be easier to make a ListBox containing Columns? That way
you can have a whole row selected without any tricks.
If you use the same column parameters they should all stay lined up, and
if one cell overflows into the next row space will be added to the other
columns in the same row.
Ian
More information about the Urwid
mailing list