wxPython update problem

Robert Amesz sheershion at mailexpire.com
Tue Apr 8 01:33:12 CEST 2003


Nils Grimsmo wrote:

> i have a problem getting wxPython to update the gui while the
> thread is running user procedures. i have tried calling
> wxWindow.Refresh() and wxWindow.Update() in various orders both on
> the wxFrame and the wxButton, but the gui doesn't update.

Have a look at wxApp::Yield() or ::wxSafeYield(). (I've used C++ syntax 
here because the docs do; Yield() is in a member function of your wxApp 
class instance, and wxSafeYield() is a function in the wxPython.wx 
module.) _Do_ read the docs, as you need to use those functions with 
some care.


Robert Amesz




More information about the Python-list mailing list