[wxPython-users] calling wxPython functions from different thread

Jacek Poplawski jacekpoplawski at gmail.com
Mon Feb 11 12:01:35 PST 2008


Hello Phil,

On Feb 11, 2008 5:39 PM, Phil Mayes <phil at philmayes.com> wrote:

> You can't update the user interface from any thread except the main
> one.  Use wx.CallAfter() to call your function.


Thank you very much, CallAfter is exactly what I need.
I put CallAfter as last instruction of my run() and it works as expected.

-- =

Free Software - find interesting programs and change them
NetHack - meet interesting creatures, kill them and eat their bodies
Usenet - meet interesting people from all over the world and flame them
Decopter - unrealistic helicopter simulator, get it from
http://decopter.sf.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200802=
11/605a6655/attachment.htm


More information about the wxpython-users mailing list