Newbie question

Kristofer Pettijohn kristofer at cybernetik.net
Fri Jul 23 15:12:56 CEST 2004


Harry Knitter <nospam at knitter-edv-beratung.de> wrote:
> Thanks, however, how do I have to invoke this procedure avoiding the program
> remaining in this endles loop.What I want to achieve is, that the program
> does something, when the file is changed an then listening again. Meanwhile
> the user shoud be able to use the program as usual. i.e. I need this
> procedure as a background process triggering a special action.

I don't have time at the moment to post example code, but you'll
want to make a class of it, and make that class a thread
(http://docs.python.org/lib/module-threading.html) so it can run in
the background while your program does other things.

-- 
Kristofer Pettijohn
kristofer at cybernetik.net



More information about the Python-list mailing list