wx.grid refresh?

471 views
Skip to first unread message

moo...@posteo.org

unread,
Feb 16, 2015, 11:59:10 PM2/16/15
to wxpytho...@googlegroups.com
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()

Werner

unread,
Feb 17, 2015, 2:56:28 AM2/17/15
to wxpytho...@googlegroups.com

moo...@posteo.org

unread,
Feb 17, 2015, 7:21:17 PM2/17/15
to wxpytho...@googlegroups.com
Hi Werner,

thanks for helping again. :)

On 2015-02-17 08:56 Werner <wern...@gmx.ch> wrote:
> http://wiki.wxpython.org/UpdatingGridData
> 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.

Werner

unread,
Feb 18, 2015, 3:03:19 AM2/18/15
to wxpytho...@googlegroups.com
On 2/18/2015 1:21, moo...@posteo.org wrote:
> Hi Werner,
>
> thanks for helping again. :)
You are welcome:-)
>
> On 2015-02-17 08:56 Werner <wern...@gmx.ch> wrote:
>> http://wiki.wxpython.org/UpdatingGridData
>> 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
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
Reply all
Reply to author
Forward
0 new messages