I'm not sure. I've answered to this mail some day ago. But apparent my
mails isn't arrived.

So I writing once again.

Am Montag, den 13.12.2004, 13:20 +0100 schrieb Gian Mario Tagliaretti:
> > 
> > Traceback (most recent call last):
> >   File "./gpkgtool.py", line 116, in Rm
> >     print select1.get_value(item, 0)
> > TypeError: iter must be a GtkTreeIter
> 
> You need a Iter not a Path to retreive the values.
> 
> > 
> > How can I get the values, now?
> 
> You can do something like this:
> 
> def selection(self, widget, event):
>    (model, pathlist) = self.select.get_selected_rows()
>     for paths in pathlist:
>         treeiter = self.alist.get_iter(paths)
>         print self.alist.get_value(treeiter, 0)

Thank you. That works great.

Marcus

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to