I am getting an error when I try to change a value in a grid that has decimals. I don't rule out that it is
something that is clueless on my part or even fixed in the latest version (I will check that)
File "C:\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\grid.py", line 1959, in GetCellValue
return _grid.Grid_GetCellValue(*args, **kwargs)
TypeError: argument number 2: a 'number' is expected, 'instancemethod(>)' is received
The following code is in my program (added to WordGrid that is an example somewhere)
this is in the init part of the code
self.Bind(gridlib.EVT_GRID_CELL_CHANGE, self.OnCellChange)
this is the subroutine (modified from one of the examples)
def OnCellChange(self, evt):
#self.log.write("OnCellChange: (%d,%d) %s\n" %
# (evt.GetRow(), evt.GetCol(), evt.GetPosition()))
#make sure the value changes so that the save function will work
value = self.GetCellValue(evt.GetRow, evt.GetCol)
self.SetCellValue(evt.GetRow, evt.GetPosition, value)
#This is the example no good will keep it in the same position
if value == 'no good':
self.moveTo = evt.GetRow(), evt.GetCol()
All this seems to do is save what I origanaly had without the whitespace.
···
_________________________________________________________________
Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001