Oh boyI must have hit an all time programmers-low with this
That was plain stupid.
2B
> You don't need the lambda - you can use:
>
> wx.CallAfter(parent.OnRequest, param)
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-02-20, cyberco <[EMAIL PROTECTED]> wrote:
> Ah! Great tip, thanks!
> Now instead of calling:
>
> parent.onRequest(param)
>
> I call:
>
> wx.CallAfter(lambda x: parent.onRequest(x), param)
How does that differ from this?
wx.CallAfter(parent.onRequest, param)
--
Grant Edwards
On 20 Feb 2007 12:01:02 -0800, cyberco <[EMAIL PROTECTED]> 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)
--
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
> l
On 2/20/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> cyberco wrote:
>
> > In my wxPython app a non-GUI thread (that reads info from the network)
> > tries to open a frame to show the new info. This results in my app
> > hanging (which is not too surprising). Coming from a C# environment I
> >
cyberco wrote:
> In my wxPython app a non-GUI thread (that reads info from the network)
> tries to open a frame to show the new info. This results in my app
> hanging (which is not too surprising). Coming from a C# environment I
> wonder if there is some sort of delegate mechanism in wxPython to d
In my wxPython app a non-GUI thread (that reads info from the network)
tries to open a frame to show the new info. This results in my app
hanging (which is not too surprising). Coming from a C# environment I
wonder if there is some sort of delegate mechanism in wxPython to do
this sort of thing.
2