Following on from that, we can also update 13.25:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.025.htp

selection = treeview.get_selection()
model, selected = selection.get_selected_rows()
iters = [selection.get_iter(path) for path in selected]
for iter in iters:
     model.remove(iter)


-Chris


On Thu, 18 Nov 2004 09:14:20 -0500, Chris Lambacher <[EMAIL PROTECTED]> wrote:
> Oops.  I always forget about he model:
> selection = treeview.get_selection()
> model, selected = selection.get_selected_rows()
> 
> 
> 
> 
> On Thu, 18 Nov 2004 09:10:45 -0500, Chris Lambacher <[EMAIL PROTECTED]> wrote:
> > http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.007.htp
> >
> > gtk_tree_selection_get_selected_rows is wrapped in at least v2.4 of
> > PyGTK so the sample code becomes:
> > selection = treeview.get_selection()
> > selected = selection.get_selected_rows()
> >
> > -Chris
> >
> > --
> > Christopher Lambacher
> > [EMAIL PROTECTED]
> >
> 
> --
> Christopher Lambacher
> [EMAIL PROTECTED]
> 


-- 
Christopher Lambacher
[EMAIL PROTECTED]
_______________________________________________
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