[wxPython-users] PygridTableBase: Not Updating

Werner F. Bruhin werner.bruhin at free.fr
Wed May 2 09:48:34 PDT 2007


Hi Marco,

Marco De Felice wrote:
> 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:
Paste must have gotten lost :-(
>  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?
Don't know, IIRC you could not call SetTable after you instantiated.  
But I might be wrong.
>
> As for Telly Williams code, try calling SetTable() on the grid after 
> reinstantiating HugeTable.
What does one gain by instantiating HugeTable again and again?

I always just refresh the content of myTable (on which I did one 
SetTable(myTable) during init) and call RefreshView?

Werner




More information about the wxpython-users mailing list