Hi Robin et al.,
nearly finished with the basics of my current project, at least
one grid issue remain:
type problems
I've combined some grids, based on wxPyGridTableBase with
a sql interface and a custom grid editor. The records contain
ints, floats and strings as usual. When loading records into
the grid, ints are going through as ints. The column dataType
is set to wxGRID_VALUE_NUMBER. After editing such an int value
I tried to store the value into the table as int, but failed,
because SetValue is expecting val as a string value:
grid.GetTable().SetValue(row, col, val) # update the table
This results is automagic type changes of all edited fields.
This won't harm, unless I want to act on some values. Do I
need to mess with type conversion code, or are there other
ways to handle this issue? I thought, the column datatypes
interface was made to ensure type safety on the grid.
Thanks in advance
Pete
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users