|
Re: Get value of selected treeview rows: msg#00084gnome.gtk+.python
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 pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: stock item: 00084, Murray Cumming |
|---|---|
| Next by Date: | gtk.Window() and accelerator: 00084, Marcus Habermehl |
| Previous by Thread: | Re: Get value of selected treeview rowsi: 00084, John Finlay |
| Next by Thread: | Building Public Information Terminal: 00084, Allan Irvine |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |