[Tutor] Executing a GUI from another GUI with a click of a button

W W srilyk at gmail.com
Mon Apr 6 21:59:39 CEST 2009


On Mon, Apr 6, 2009 at 2:30 PM, Chris Lee <i-scream_cones at hotmail.com>wrote:

> <snip>
>
> I know for certain that the "clock.py" works (because i got it from the
> web.. -_-;;)
>
> but I'm having a real difficulty trying to open clock.py through my real
> program....
>
> I know you're busy and everything, but I REALLY hope you can help me
> soon...
>

One option would be to use subprocess.

import subprocess as sp

sp.call('python myfile.py')


that's probably the simplest way to do it.

Good luck,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090406/45db141c/attachment.htm>


More information about the Tutor mailing list