Look this slice of code:<br><br>rowN = int(0)<br> for row in rows:<br> success = self.resultGrid.AppendRows();<br> colN = int(0)<br> for col in row:<br> self.resultGrid.SetReadOnly(self.resultGrid.GetNumberRows() - 1,colN,isReadOnly = True)<br>
print rowN<br> self.resultGrid.SetCellValue(int(rowN),int(colN),col)<br><br>I am getting this output:<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>(1,)<br>Traceback (most recent call last):<br> in populateGrid<br>
self.resultGrid.SetCellValue(int(rowN),int(colN),col)<br>TypeError: int() argument must be a string or a number, not 'tuple'<br><br><br>Why is this happening?<br>