[wxPython-users] refreshing frame within loop problem
Werner F. Bruhin
werner.bruhin at free.fr
Sat Nov 18 07:35:35 PST 2006
Hi Roy,
Roy Zinn wrote:
> Hi Again,
>
> I did try the Refresh and as you wrote it didn't work. I'm not yet
> familiar with wxpython,
>
> How do I use the Update ? (or, can you please point me to what I need
> to read…)
>
In your loop do:
myframe.Refresh()
myframe.Update()
Quote from doc:
wxWindow::Update
virtual void Update()
Calling this method immediately repaints the invalidated area of the
window while this would usually only happen when the flow of control
returns to the event loop. Notice that this function doesn't refresh the
window and does nothing if the window hadn't been already repainted. Use
Refresh first if you want to immediately redraw the window unconditionally.
Hope this helps
Werner
More information about the wxpython-users
mailing list