In article <352fe298-75b1-4bc3-aca0-ecd0165f5...@h40g2000prf.googlegroups.com>, Babloo <pruthviraj...@gmail.com> wrote: > >i have a small python application with GUI (frontend) which has >various functions. I have a "RUN" button which runs python scripts in >the background . It basically calls execfile() function internally >which runs in a thread , to run the python script . > >I want to implement a "PAUSE" feature which would pause the running >python script . So do that i have to either pause the thread in which >execfile() runs or pause execfile itself .
You might be able to get something useful out of Python's debugger hooks (create some kind of callback). -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "You could make Eskimos emigrate to the Sahara by vigorously arguing -- at hundreds of screens' length -- for the wonder, beauty, and utility of snow." --PNH to rb in r.a.sf.f -- http://mail.python.org/mailman/listinfo/python-list