[pygtk] help with TreeStore

Lawrence Oluyede l.oluyede at gmail.com
Sun Jun 11 17:46:21 WST 2006


> When storing number I have used 'int' but to find out that I was not allowed
> to go back to change the value back to 'None' (TypeError: value is of the
> wrong type for this column). Is there a way to set the value of a ListStore
> to None in that case?

None is not an it so you can't set an int column to a non-int. You
might change the column type.

> One last question. I have not found a way to query a ListoStore/TreeStore to
> output which are its column definitions, so no way to create a inspector. Is
> it possible?

Have a look at:
http://www.pygtk.org/pygtk2reference/class-gtktreemodel.html#method-gtktreemodel--get-column-type


-- 
Lawrence
http://www.oluyede.org/blog


More information about the pygtk mailing list