wxgrid problem

i’ve added a wxGrid to my program. now i am having trouble in setting the value of the cells in the grid.

this is what i’ve done:

data1 = float(byte[k+3])* 5/255
data2 = float(byte[k+4])* 5/255
data3 = float(byte[k+5])* 5/255
data4 = float(byte[k+6])* 5/255
data5 = float(byte[k+7])* 5/255
data6 = float(byte[k+8])* 5/255

self.grid1.SetCellValue(str(data1), self.count, 0 )
self.grid1.SetCellValue(str(data2), self.count, 1 )
sellf.grid1.SetCellValue(str(data3), self.count, 2 )
self.grid1.SetCellValue(str(data4), self.count, 3 )
self.grid1.SetCellValue(str(data5), self.count, 4 )
self.grid1.SetCellValue(str(data6), self.count, 5 )

but i am having an error that says:

Traceback (most recent call last):

File “E:\GUICode\Folder1\wxFrame1.py”, line 496, in OnStartButton

self.grid1.SetCellValue(str(pyra11), self.count, 0 )

File “C:\PYTHON23\Lib\site-packages\wxPython\grid.py”, line 1439, in SetCellValue

val = gridc.wxGrid_SetCellValue(self, *_args, **_kwargs)

TypeError: an integer is required

How am i going to do this???

···

Do you Yahoo!?

Take Yahoo! Mail with you! Get it on your mobile phone.