[Urwid] still very confused (error makes no sense)

Ian Ward ian at excess.org
Tue Jul 4 23:42:51 EDT 2006


Eric S. Johansson wrote:
> I didn't verify that at this point that yes it truly is getting a list I 
> don't know how it's getting a list or why.  I thought I was copying the 
> example model correctly but obviously I've missed something.
> 
> and the appropriate bit of code (I think)
> 
>         self.items=[]
>         self.base_items = [ location, urwid.Divider()]
>         #print "ccc",self.l[0].network_list
> 
>         self.items.append(self.base_items )

Here you're appending a list to a list (so the list contains the list). 
The last line should read:
self.items += self.base_items




More information about the Urwid mailing list