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

Chris Mellon arkanes at gmail.com
Tue Feb 20 15:24:32 EST 2007


On 20 Feb 2007 12:01:02 -0800, cyberco <cyberco at gmail.com> wrote:
> Ah! Great tip, thanks!
> Now instead of calling:
>
> parent.onRequest(param)
>
> I call:
>
> wx.CallAfter(lambda x: parent.onRequest(x), param)
>

You don't need the lambda - you can use:

wx.CallAfter(parent.OnRequest, param)



More information about the Python-list mailing list