On Tue, 2003-12-30 at 22:14, Daniel Kirkegaard Mouritsen wrote: > Hey everybody, > > I'm having problems with the gtk.CellRendererToggle() renderer, I have a > TreeStore with three column defined like this: > > tree_store = gtk.TreeStore(gobject.GObject, gobject.TYPE_STRING, > gobject.TYPE_STRING) > > Ive connected the "toggled" signal to a function, but when i > activate/deactivate the toggle it applies the changes to all the > toggles. > > Is it not possible to only catch the object being clicked on? > > Even better, is it possible to use tree_store.set_value(iterator, index, > checkbox-object) to fill a column with actual checkbox objects and > connect them one at a time instead? > > I tried doing it, but i couldn't make it work. I haven't been able to > find a gtk.CellRenderer function for displaying widgets. > > -Daniel > > PS. Ive only been able to dig up a reference on these objects, if any of > you have some links to actual documentation on how the TreeView widget > works it would be very appreciated :) > > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
woops :) i was being silly, i can apparently link the toggle too a value in the treestore like this: self.tree_model.set_value(self.tree_iter, 0, track['selected']) and then: self.column = gtk.TreeViewColumn(None, self.tree_renderer, active=track['selected']) it seems to be a solution anyways, sorry about not trying harder before posting in here. Wont happen again :) -daniel _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
