This shouldn't be so difficult. I am now trying
setattr(self.name,row,valstr) and this is also not working!
Can someone help me with this?
How does SetCellValue work? And how would the syntax look?
I am trying to modify a wxGrid cell after an update to a cell.
Here is the most recent attempted code:
...
def SetValue(self, row, col, valstr):
...
#Update the database!
x=self.__db.executeSQL(stmt)
#Update the grid (things I've tried are #commented out)
#self.__rows[row][col] = valstr
#self.SetCellValue(row, valstr)
return setattr(self.name,row,valstr)
...
When I modify the cell's value it updates the Database correctly but I
get the following message:
TypeError: attribute name must be string