[Tutor] running function program

2009-12-20 Thread Richard Hultgren
Hello, when i try to run this (see below) i get message: socket error: no connection could be made because the target maching actively refused it, and, idle subprocess didn't make connection.  either idle can't start a subprocess or personal firewall software is blocking the connection. def

Re: [Tutor] running function program

2009-12-20 Thread Lie Ryan
On 12/20/2009 11:53 PM, Richard Hultgren wrote: Hello, when i try to run this (see below) i get message: socket error: no connection could be made because the target maching actively refused it, and, idle subprocess didn't make connection. either idle can't start a subprocess or personal

Re: [Tutor] running python program on Linux Virtual Server - Plesk?

2009-09-03 Thread Christian Witts
Michael Yang wrote: Hi Everyone, I'm new to programming and to python. I have a program I want to run on my Media Temple Virtual Server (dv) - Linux. which has the latest Plesk 9 virtuozzo installed. Ultimately I want it to run the program (main.py) on a scheduled basis. How do I do

Re: [Tutor] running python program on Linux Virtual Server - Plesk?

2009-09-03 Thread Christian Witts
Michael Yang wrote: thanks. so this would run my script on a schedule i specify. And its a set it and forget it deal. but if i want to view the output of the program (ie. the program has various print statements to show program's status), how would I do this while its running the job?

[Tutor] running python program on Linux Virtual Server - Plesk?

2009-09-02 Thread Michael Yang
Hi Everyone, I'm new to programming and to python. I have a program I want to run on my Media Temple Virtual Server (dv) - Linux. which has the latest Plesk 9 virtuozzo installed. Ultimately I want it to run the program (main.py) on a scheduled basis. How do I do this? Thanks! -Mike

Re: [Tutor] RUNNING A PROGRAM

2008-10-20 Thread Alan Gauld
WM [EMAIL PROTECTED] wrote a = Futzenburgerstein b = ( 7 + 2 ) / 3 c = b / 2 print a, b, c The above text was copied from a window named ??futz.py-C:\Python26\futz.py The ?? is two red script characters which I cannot read. When I go 'F5' or Run Run Module I get kicked back into IDLE.

[Tutor] RUNNING A PROGRAM

2008-10-19 Thread WM
a = Futzenburgerstein b = ( 7 + 2 ) / 3 c = b / 2 print a, b, c The above text was copied from a window named ??futz.py-C:\Python26\futz.py The ?? is two red script characters which I cannot read. When I go 'F5' or Run Run Module I get kicked back into IDLE. Shouldn't 'F5' get me a window

[Tutor] Running another program from Python

2007-07-20 Thread Chris Smith
Howdy, I am working on some research. I'm trying to optimize the performance of an antenna. For the simulation of the antenna it would be easiest to use an antenna software package that I have in my lab. I know that Matlab can call the antenna software through a command called system. Matlab

Re: [Tutor] Running another program from Python

2007-07-20 Thread Carlos Daniel Ruvalcaba Valenzuela
There is also os.system which should work in a similar way as Matlab system. You pass a string with the command and arguments. The downside of system is that it opens an entire shell and environment for the program being run, you only have the return value from the application. Other options can

[Tutor] Running a program

2007-05-01 Thread Jessica Brink
I know this seems elementary, but if I write a program and save it as a .py file, how do I then run that program on the command line or in the Python Shell (GUI)? Or is there something I'm missing? I swear I was able to do this once, and now I can't remember what I did... Jessica Brink

Re: [Tutor] Running a program

2007-05-01 Thread John Washakie
Jessica, Assuming you have python installed on your system (Windows?, *nix?), then all you have to do is double click the .py file and it will run. If you want, you can run it from the command line: C:\ python yourfile.py On 5/1/07, Jessica Brink [EMAIL PROTECTED] wrote: I know this

Re: [Tutor] Running a program

2007-05-01 Thread Alan Gauld
Jessica Brink [EMAIL PROTECTED] wrote I know this seems elementary, but if I write a program and save it as a .py file, how do I then run that program on the command line Just type python script.py at the OS prompt Or in *nix you can just type script.py if you havbe a shebang line at

Re: [Tutor] running a program

2005-11-28 Thread Alan Gauld
Pujo Aji [EMAIL PROTECTED] wrote: this should be the same as running other python code. assuming you use windows, you can type from dos command : python namefile.py Or indeed just double click on the file in Windows explorer. Extra tip: If you rename it to namefile.pyc then it won't bring

Re: [Tutor] running a program

2005-11-28 Thread Kent Johnson
Alan Gauld wrote: Or indeed just double click on the file in Windows explorer. Extra tip: If you rename it to namefile.pyc then it won't bring up the blank DOS console window. mmm, that should be namefile.pyw Kent -- http://www.kentsjohnson.com

[Tutor] running a program

2005-11-27 Thread David Jimenez
Hello everybody,I have a very simple question: how can I run a script that uses module Tkinter without using IDLE? Thank you,David Yahoo! Music Unlimited - Access over 1 million songs. Try it free.___ Tutor maillist - Tutor@python.org