logo       

Multiple selection in treeview, was: Re: CellRendererText doesn't have clic: msg#00107

gnome.gtk+.python

Subject: Multiple selection in treeview, was: Re: CellRendererText doesn't have clicked signal now what?

Thomas Mills Hinkle writes:

> An additional query -- does anyone know if it's possible to select and
> arbitrary range of a treeview, a la spreadsheets? I'd like to let the
> user, for example, select four rows of one column so that I could
> offer e.g. a "fill down" action.
Sure. You have to enable "multiple selection mode" by calling

treeview.get_selection().set_mode(gtk.SELECTION_MULTIPLE)

After that, the user can use the usual Shift + click and Ctrl + click
to select multiple rows.
_______________________________________________
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>
Google Custom Search

News | FAQ | advertise