Running with arguments in IDLE?

Chris Kassopulo ckasso at sprynet.com
Sun Sep 29 17:43:22 EDT 2002


On Tue, 24 Sep 2002 21:39:19 GMT
joe sixpack <joe.sixpack at quartercase.com> wrote:

> the arguments.  What I don't know is how to run the script from 
> within IDLE and specify the argument to use when it is run.  In
> Pythonwin, 'RUN'ning a script brings up the dialog box in which
> arguments may be specified.  How is this done in IDLE?  

I just noticed this post.  It's a few days old and I don't see
any replies, so I'll try.  According to the docs you can't run
with arguments directly.  You need a function that calls your
script with arguments.  See "Running a File" in:

    http://www.python.org/idle/doc/idle2.html

Also, I don't think this is what you want but I'll mention it
anyway.  From a commandline you can run a script in idle with:

    python idle.py ascript.py arg1 arg2 ...


Chris Kassopulo



More information about the Python-list mailing list