[pygtk] Putting a PyObject in a ListStore
Noah Schwartz
noah.schwartz1 at gmail.com
Sat Sep 16 10:30:03 WST 2006
Hi,
I'd like one of the columns in my ListStore to contain a PyObject. I have
defined the __str__ and __repr__ (both return a string) for the object I
would like to put in the column and have created my ListStore like so:
self.listStoreJobs = gtk.ListStore(gobject.TYPE_PYOBJECT, int)
However, Im not sure how to setup the CellRendererText for that column. For
the int column I have set the attribute "text" but, I cant seem to figure out
what attribute I would need to set for the PyObject column.
Thanks in advance,
Noah
More information about the pygtk
mailing list