Re: [pygtk] Putting a PyObject in a ListStore

2006-09-18 Thread David Johansson
Hi, you will have to set a cell_data_func for that column. Take a look at the pygtk tutorial http://pygtk.org/pygtk2tutorial/sec-CellRenderers.html#sec-CellDataFunction /david 2006/9/16, Noah Schwartz [EMAIL PROTECTED]: Hi, I'd like one of the columns in my ListStore to contain a

[pygtk] Putting a PyObject in a ListStore

2006-09-15 Thread Noah Schwartz
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)