[Tutor] [wxPython-users] Executing a python script in WxPython

Varsha Purohit varsha.purohit at gmail.com
Wed Nov 14 05:27:39 CET 2007


Thanks for the help its working now !!!

On Nov 13, 2007 7:34 PM, Kent Johnson <kent37 at tds.net> wrote:
> Varsha Purohit wrote:
> > Hello,
> >       I have an application where i need to run a python script from
> > wxpython gui. I am calling the script from the button click event. And
> > the moment button is pressed the python script should be executed.
>
> If you can import the script and call the required function that is the
> simplest approach. If you have to run the script as from the command
> line then use os.system or subprocess.Popen.
>
> Kent
> >
> > thanks,
> > Varsha Purohit,
> > Graduate Student
>
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
>
>



-- 
Varsha Purohit,
Graduate Student


More information about the Tutor mailing list