[pygtk] Extending ListStore?

Tiago Cogumbreiro cogumbreiro at linus.uac.pt
Fri Nov 12 00:21:36 WST 2004


I forgot to say that I did gobject.type_register (MyStore)

Any ideas why it's not working?

On Thu, 2004-11-11 at 01:08 -0100, Tiago Cogumbreiro wrote:
> Hi there, 
> Is it possible to extend the gtk.ListStore class? I've tried but the
> append method refused to work. This was the error message when i try to
> append a row:
> TypeError: cannot set cells in this tree model
> 
> The example class is as simple as this:
> class MyStore (gtk.ListStore):
> 	def __init__(self, *args):
> 		gtk.ListStore (self, *args)
> 
> Thank you all for your time,
> 
> Tiago Cogumbreiro
> 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



More information about the pygtk mailing list