Obviously, I am missing a "counter = counter + 1" at the end of the loop...
self.ClearGrid()
counter = 0
for columns in range(9):
for rows in range(len(self.numberofrows):
if FilterIsOK:
self.SetCellValue(counter, columns, somevalue)
# increment row
counter = counter + 1
Thank you.
Andrea
Take a look at GridTableBase (wx.grid.PyGridTableBase). This lets you decouple the grid data from
the grid view. You do have to jump through a few hoops to change the number of rows, but there's an
example of how to do this in the wiki.
···
----- Original Message ----- From: <andrea.gavana@agip.it>
To: <wxPython-users@lists.wxwidgets.org>
Sent: Wednesday, December 22, 2004 3:29 AM
Subject: Rif: [wxPython-users] "Large" wxGrid Question
Obviously, I am missing a "counter = counter + 1" at the end of the loop...
self.ClearGrid()
counter = 0
for columns in range(9):
for rows in range(len(self.numberofrows):
if FilterIsOK:
self.SetCellValue(counter, columns, somevalue)
# increment row
counter = counter + 1
Thank you.
Andrea
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org