nephish wrote:
Hey there,
i have a program that calls another program to execute on a button
click. Its another pygtk app. And i am using the
os.system('python /home/my/myprogram.py') to bring it up. It comes up
ok, but when i close its window, the program that called it up is locked
up. Um, what could i do about this?
thanks.
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Hi
Instead of using os.system(), try:
os.spawnv(os.P_WAIT, ...) to execute the child process and wait for it
to end or
os.spawnv(os.P_NOWAIT, ...) to executr the child process and continue
without waiying for it to end.
Regards
Paul
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/