[Tutor] Custom Input Subprocess

Alan Gauld alan.gauld at btinternet.com
Thu Oct 31 01:03:56 CET 2013


On 30/10/13 23:49, Kenny Stier' wrote:

> import subprocess
> subprocess.call(["at", "-f", "download.sh", "7:11 PM"])
>
> But using the GUI, they need to be able to input their own text where
> the time is, and where it says "download.sh". How do I do this? Thanks!

What exactly is your problem? Do you know how to create a GUI to capture 
strings in variables? Or do you not know how to insert string
variables into the subprocess call?

Or is it something else?
I'm not sure I know what you are asking.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list