This is my code:

def list(self):
                tree = self.principal.get_widget("list")
                self.list = gtk.ListStore(bool,str)
                self.options = [1,"programa1"]

                renderer1 = gtk.CellRendererToggle()
                renderer1.set_property('activatable', True)
                renderer1.connect( 'toggled', self.selection, self.list)
                tree.insert_column_with_attributes(0, "Select",renderer1)

                renderer2 = gtk.CellRendererText()
                tree.insert_column_with_attributes(1,"Install",renderer2, 
text=1)
                self.list.append(self.options)
                tree.set_model(self.list)

        def selection( self, cell, path, model ):
                model[path][0] = not model[path][0]
                return

It shows up but the toggle button isnt working! what is wrong with
this?

I m following this example:

http://pygtk.org/pygtk2tutorial/sec-CellRenderers.html#sec-EditableActivatableProgram

Thanx for any help!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to