Oops I guess I should have read James' reply a bit more thoroughly. Thanks for putting me on the right track. Just for the record the args passed back when the toggle is clicked are not (cell, path_string, model) but are (gtk.CellRendererToggle object, row_num)
In case anyone else is using this.
On Thu, Mar 06, 2003 at 10:56:53PM -0800, David M. Cook wrote:
> On Thu, Mar 06, 2003 at 11:40:03PM -0700, Jay Graves wrote:
>
> > self.col2.connect('toggled',self.toggle)
>
> You want to connect to the renderer, not the column:
>
> cell = gtk.CellRendererToggle()
> cell.connect("toggled", self.toggle)
> self.col2 = gtk.TreeViewColumn("allow",gtk.CellRendererToggle(),active=2)
>
> 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/
--
Jay Graves
[EMAIL PROTECTED]
jay.skabber.com
O__
_/`.\
`=( '
pgp00000.pgp
Description: PGP signature
