[Urwid] Create pile from list
Fabian Braennstroem
f.braennstroem at gmx.de
Sat May 30 14:00:44 EDT 2009
Hi,
I would like to create a pile from a list of e.g. 'Text' widgets.
Right now, I am doing something like this:
self.piler=Pile([Button(liste[0]) ,Text(liste[1])
,Text(liste[2]),Text(liste[3]) ,Edit(liste[4]) ,Text(liste[5])
,Text(liste[6]) ,Text(liste[7]) ,Text(liste[8])])
but in general I have no idea about the length of the list, so a loop
over every list item would be needed. Does anyone have an idea?
And one more question, I am often using a simple 'print' to 'debug'
certain variables, but this does not work in background!? Thanks!
Greetings!
Fabian
More information about the Urwid
mailing list