On Sat, Mar 29, 2003 at 11:33:49AM -0700, Jay Graves wrote:
> I have a project where I am using a treeview where one of the columns is
> a boolean (check box) field. The behaviour I want is for only one check
> box to be checked at any time. So if the user checks row 2 and then
> checks row 8, row 2 is automatically unchecked. Is there a
> gtkTreeViewColumn setting that will set the functionality or is it
> something I will have to do manually?
What you want are radio buttons. I haven't tried this, but from the docs,
it looks like you would use "radio" instead of "active" when adding a column:
cell = gtk.CellRendererToggle()
tvcolumn = gtk.TreeViewColumn('foo', cell, radio=RADIOCOLUMN)
However, it's not clear to me whether the radio buttons have to be grouped
or whether this does it for you. See the FAQ:
http://www.async.com.br/faq/pygtk/index.py?req=all#9.1
Dave Cook
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/