Re: Pause a thread/ execfile()

2009-10-27 Thread Aahz
In article <352fe298-75b1-4bc3-aca0-ecd0165f5...@h40g2000prf.googlegroups.com>, Babloo 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 internal

Re: Pause a thread/ execfile()

2009-10-26 Thread Terry Reedy
Babloo wrote: Any ideas how to pause execfile()? As far as the calling instance of the Python interpreter is concerned, calling execfile (or any C function) is an atomic action. You need to rewrite the code in the file executed to have it monitor a semaphore. -- http://mail.python.org/mai

Re: Pause a thread/ execfile()

2009-10-26 Thread Sean DiZazzo
On Oct 26, 1:25 am, Babloo wrote: > On Oct 26, 1:01 pm, Sean DiZazzo wrote: > > > > > On Oct 25, 11:58 pm, Babloo 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 b

Re: Pause a thread/ execfile()

2009-10-26 Thread Babloo
On Oct 26, 1:01 pm, Sean DiZazzo wrote: > On Oct 25, 11:58 pm, Babloo 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 >

Re: Pause a thread/ execfile()

2009-10-26 Thread Babloo
On Oct 26, 1:11 pm, Saju Pillai wrote: > On 26/10/09 12:28 PM, Babloo 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 > > wh

Re: Pause a thread/ execfile()

2009-10-26 Thread Saju Pillai
On 26/10/09 12:28 PM, Babloo 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

Re: Pause a thread/ execfile()

2009-10-26 Thread Sean DiZazzo
On Oct 25, 11:58 pm, Babloo 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 . >