On Sun, Jun 11, 2006 at 11:46:21AM +0200, Lawrence Oluyede wrote: > >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.
Of course it is not. But it's funny you can leave it undefined but you cannot revert to undefined. A parallel with database: an 'int' column accept a NULL value, You cannot use an int colum of a TreeStore to represent an 'int' col of a db since all NULL value would not be mapped. I resorted using string and casting the type, but I think is not elegant. > Have a look at: > http://www.pygtk.org/pygtk2reference/class-gtktreemodel.html#method-gtktreemodel--get-column-type Thanks, I missed it... sandro -- Sandro Dentella *:-) http://www.tksql.org TkSQL Home page - My GPL work _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
