I seem to be creating an extra line on my grid that doesn't exist and doesn't save back to the file.
The error I get is
self.rows[row][col] = self.GetCellVal ue(row -1, col)
IndexError: list index out of range
This is the part of the code that generates the error
This is the part of the code that adds an extra line to the grid (on screen only apartently)
The rest of the (older code) is here in the csound routines module if it is helpfull (probily not needed)
Dex Tracker
THis is python 2.4 with wxpython 2.6
The error I get is
self.rows[row][col] = self.GetCellVal ue(row -1, col)
IndexError: list index out of range
This is the part of the code that generates the error
Code:
def OnCellChange(self, evt):
row = self.GetGridCursorRow()
col = self.GetGridCursorCol()
try:
self.rows[row][col] = self.GetCellValue(row, col)
except:
self.rows.append
self.rows[row][col] = self.GetCellValue(row -1, col)
Code:
def addline(self):
"add line to the grid"
self.AppendRows(1)
self.rows.append(row[1])
Dex Tracker
THis is python 2.4 with wxpython 2.6
Comment