[wxPython-users] PygridTableBase: Not Updating

Marco De Felice m.defel at gmail.com
Wed May 2 09:19:40 PDT 2007


Werner F. Bruhin wrote:

 >In OnSelChanged you instantiate every time a new instance of 
HugeTable.  I don't think that works, ...

Well I always do that in my code, see also the addition to the wiki page 
"wxPyGridTableBase" that I'll paste here:
  I'm repeatedly setting SetTable(severalDifferentTables) on a 
wx.grid.Grid, followed by a ForceRefresh(), and it works great for me.
  Is this a limitation that has been removed?

As for Telly Williams code, try calling SetTable() on the grid after 
reinstantiating HugeTable.




More information about the wxpython-users mailing list