How to update window after wxGrid is updated?
Hans Nowak
hans at zephyrfalcon.org
Wed May 12 01:46:15 EDT 2004
Tim Williams wrote:
> Hi.
>
> I'm starting to learn wxPython and for an exercise I'm writing a
> simple CSV file viewer. I just read in the CSV file and create a
> wx.Grid with the data. I'm using Python 2.3.2 with wxPython 2.4.2.4.
>
> Everything runs fine under linux, but when I try the same code on a
> Win XP machine, I have a window, but the frame the grid is in isn't
> seen until I do a minimize/maximize on the window. Besides that, it
> seems to run fine. I tried to do a self.Refresh(True,
> self.grid.GetRect()), but that didn't help.
I believe wx.Yield() should do the trick.
More information about the Python-list
mailing list