Look this slice of code:

rowN = int(0)
        for row in rows:
            success = self.resultGrid.AppendRows();
            colN = int(0)
            for col in row:
                self.resultGrid.SetReadOnly(self.resultGrid.GetNumberRows()
- 1,colN,isReadOnly = True)
                print rowN
                self.resultGrid.SetCellValue(int(rowN),int(colN),col)

I am getting this output:
0
0
0
0
0
0
0
(1,)
Traceback (most recent call last):
     in populateGrid
    self.resultGrid.SetCellValue(int(rowN),int(colN),col)
TypeError: int() argument must be a string or a number, not 'tuple'


Why is this happening?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to