treeview / pygtk problem

Andre Lerche andre.lerche at update.com
Fri Jul 11 11:39:17 EDT 2003


Hi Tim,

Tim Gerla <tim at gerla.net> wrote in message news:<mailman.1057867154.11801.python-list at python.org>...
> On Thu, 2003-07-10 at 11:53, Andre Lerche wrote:
> > Hi list,
[...]
> > renderer = g.CellRendererText ()
> > col1 = g.TreeViewColumn ("col 1", renderer, text=1)
> > col2 = g.TreeViewColumn ("col 2", renderer, text=1)
>                                                ----^
> That's your problem right there: text= expects a sequence from 0 to n.
> So try:
> 
> col1 = g.TreeViewColumn ("col 1", renderer, text=0)
> col2 = g.TreeViewColumn ("col 2", renderer, text=1)
> 
> That should solve your problem!  
> 
> -Tim
> tim at gerla.net

Yes, this has solved my problem, I was really to dumb.

Thanks,

Andre




More information about the Python-list mailing list