[wxPython-users] Re: PyGridTableBase: database update + errata

Stefano Bartaletti s.bartaletti at dyemagic.com
Mon Jul 30 00:21:47 PDT 2007


Alle lunedì 30 luglio 2007, Dominique ha scritto:
> In the previous code, the list of data was not updated. But even after
> correction, it still doesn't work.

You are changing the data in OnSelect, but still your LineUpTable is holding 
the original data from creation.

If you take a look at Grid_MegaExample from the wxPython demo, you will find a 
couple of functions (ResetView and UpdateValues) that will help you solve it.

You should place a function in your grid replacing 'entries' in the underlying 
LineupTable, and then call ResetView/UpdateValues, I think this will do the 
trick

-- 
Cordialmente

Stefano Bartaletti

G.Tosi Spa Tintoria

Skype account: stefano.bartaletti
ICQ contact  : 1271960




More information about the wxpython-users mailing list