wx.grid refresh?

I have a wx.grid.Grid derived class that display data
and a wx.grid.GridTableBase that "manage" this data as a list of
sqlalchemy-data objects.

When adding or deleting data objects the grid-objects need to know that
to refresh the table. But I couldn't find a Refresh() or something like
that in wx.grid.Grid that restart the process of asking
GridTableBase.GetValue()

Hi,

I have a wx.grid.Grid derived class that display data
and a wx.grid.GridTableBase that "manage" this data as a list of
sqlalchemy-data objects.

When adding or deleting data objects the grid-objects need to know that
to refresh the table. But I couldn't find a Refresh() or something like
that in wx.grid.Grid that restart the process of asking
GridTableBase.GetValue()

There is some info on the wiki for that:

http://wiki.wxpython.org/UpdatingGridData
http://wiki.wxpython.org/wxPyGridTableBase

Depending on your needs you might also want to consider objectlistview as an alternative to using wx.Grid.

http://objectlistview-python-edition.readthedocs.org/en/latest/

Werner

···

On 2/17/2015 5:58, moonkid@posteo.org wrote:

Hi Werner,

thanks for helping again. :slight_smile:

UpdatingGridData - wxPyWiki
http://wiki.wxpython.org/wxPyGridTableBase

There is a message class? Interesting.

btw: The PyWiki confuse me a lot because of mixing code (old
wxPython stuff, Phoenix, C++) etc
There are some really helpful articles, but they
should be integrated in the official documentation and not split in
pieces all over the digital world.

I am so new (to Python) that I even don't know what I am really doing.
So that is why I am not able to produce good, deep and correct
documentation fixes.
But I will go on and keep in my mind for the future.

Depending on your needs you might also want to consider
objectlistview as an alternative to using wx.Grid.

Mhm... Looks nice. I will try this out.

···

On 2015-02-17 08:56 Werner <wernerfbd@gmx.ch> wrote:

Hi Werner,

thanks for helping again. :slight_smile:

You are welcome:-)

UpdatingGridData - wxPyWiki
wxPyGridTableBase - wxPyWiki

There is a message class? Interesting.

btw: The PyWiki confuse me a lot because of mixing code (old
wxPython stuff, Phoenix, C++) etc

Yes, there is probably still some pre wxPython 2.6 stuff floating around.

There are some really helpful articles, but they
should be integrated in the official documentation and not split in
pieces all over the digital world.

With the Phoenix doc it would be good to convert update the code samples in the wiki and add them to the doc.

See e.g. the 'Example 1' on http://wxpython.org/Phoenix/docs/html/ArtProvider.html?highlight=getbitmap#ArtProvider.GetBitmap

Werner

···

On 2/18/2015 1:21, moonkid@posteo.org wrote:

On 2015-02-17 08:56 Werner <wernerfbd@gmx.ch> wrote: