[wxPython-users] event tutorial

Josiah Carlson jcarlson at uci.edu
Sun Dec 3 11:14:54 PST 2006


Code <code at u-turn.cz> wrote:
> i have controlls on panel, when they are activated, several threads are
> stared, returning data. i want to display data back on panel, please can
> you point me to some tutorial about events ?

This wiki page talks about how to create/post events:
http://wiki.wxpython.org/index.cgi/CustomEventClasses

This wiki page uses that method to directly post events back to a main
thread:
http://wiki.wxpython.org/index.cgi/AsynchronousSockets

Instead of events and bindings, you can also use wx.CallAfter to get
information back into the GUI thread (it uses events under the covers):
http://wiki.wxpython.org/index.cgi/CallAfter


 - Josiah





More information about the wxpython-users mailing list