Invoke a method to a specific thread
en.karpachov at ospaz.ru
en.karpachov at ospaz.ru
Mon Jul 25 01:31:10 EDT 2005
Mon, Jul 25, 2005 at 01:20:39PM +0800, Varghj?rta пишет:
> When doing GUI apps in C# I often have to call a method that will
> modify the GUI somehow from a different thread then the GUI is on (to
> allow for GUI responsiveness). I simply call Invoke() or BeginInvoke
> which resides in another thread with a delegate pointing to the method
> I want to start in that thread.
>
> How would I go about doing this in Python?
I don't know of this functionality in the standard python library, but look
at the Twisted framework (http://twistedmatrix.com).
What you need is
http://twistedmatrix.com/projects/core/documentation/howto/threading.html#auto2
--
jk
More information about the Python-list
mailing list