how to start a new thread from a GUI

Wen Jiang wj691781 at bcm.tmc.edu
Thu Aug 16 00:34:30 EDT 2001


Donn Cave wrote:
> 
> Quoth Wen Jiang <wj691781 at bcm.tmc.edu>:
> | I have a GUI to submit a background job and want the GUI to exit after
> | the job is submitted to leave the actually big job run for a few days to
> | compleletion. Could anyone give me a hint how to do this? right now the
> | GUI stays but blocked by the background job.
> | Thanks.
> 
> os.spawnv(os.P_NOWAIT, cmd, argv) might work for you.
> 
>         Donn Cave, donn at u.washington.edu

The job is a class method in python, not a standalone program, os.spawnv
might not work with this situation. is it still doable with other
techniques (fork, thread ?)

Wen



More information about the Python-list mailing list