wxPython update problem

Cliff Wells LogiplexSoftware at earthlink.net
Tue Apr 8 11:37:45 EDT 2003


On Mon, 2003-04-07 at 03:05, Nils Grimsmo wrote:
> hi!
> 
> 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.

There are a couple of examples of updating the GUI from a thread in the
wxPython demo.  Did you look at them?   There are two approaches: 1) use
a thread and send update events to the GUI (see throbber in the demo) or
2) use a wxTimer (see the demo of the same name).

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308






More information about the Python-list mailing list