How to run functions in the background?

Terry Reedy tjreedy at udel.edu
Mon May 30 14:58:10 EDT 2005


"Ognjen Bezanov" <ognjen at mailshack.com> wrote in message 
news:429B3A9E.9060201 at mailshack.com...
> I need to find a way to 'fork' a function into the background yet still
> be able to send commands to it.

Others gave you the answer to this..

> I am writing a media player, and I have a function which plays the
> media. I want to be able to run this function but to (at the same time)
> be able to send commands from it (e.g. pause, play etc...)

But for this, you might look into PyGame, which, I believe, has functions 
like this.

Terry J. Reedy






More information about the Python-list mailing list