I am getting the following error while inserting values in the cells of grid in wxPython:
wx._core.PyAssertionError: C++ assertion "(row >= 0 && row < GetNumberRows()) && (col >= 0 && col < GetNumberCols())" failed at ..\..\src\generic\grid.cpp(1305) in wxGridStringTable::SetValue(): invalid row or column index in wxGridStringTable.
Can anyone tell me what is the reason for this???
Error while inserting value in to cells in a grid in wxpython Topic is solved
Re: Error while inserting value in to cells in a grid in wxpython
The error message is as clear as it gets. You're trying to set a value outside the grid size. E.g. if your grid is 5x5 and you're trying to set the value for cell (6,6), you get that error.
Did you call wxGrid::CreateGrid()?
Did you call wxGrid::CreateGrid()?
Use the source, Luke!