wxPython: non-GUI thread launching new frame? Delegates?

cyberco cyberco at gmail.com
Tue Feb 20 15:01:02 EST 2007


Ah! Great tip, thanks!
Now instead of calling:

parent.onRequest(param)

I call:

wx.CallAfter(lambda x: parent.onRequest(x), param)

Way cool.
2B



> This is rather out of date. wxPython provides a wx.CallAfter function,
> which will call the passed callable on the next spin through the event
> loop. It's essentially a wrapper around the custom event mechanism
> described above.
>
> > Diez




More information about the Python-list mailing list