Re: [Tutor] A newbie question about running python scripts

2005-06-15 Thread ZIYAD A. M. AL-BATLY
On Wed, 2005-06-15 at 20:19 -0700, typetext wrote: > I am trying to run my first python scripts from a windows XP command > line, and using Ivan Langhan's book Teach yourself python in 24 hours. > I have installed Active Python 2.4 and have had no trouble running the > scripts in the IDE . Followi

Re: [Tutor] A newbie question about running python scripts

2005-06-15 Thread ZIYAD A. M. AL-BATLY
On Wed, 2005-06-15 at 21:23 -0600, Chuck Allison wrote: > Dear Tutors, > > Here is a query from a student from a corporate class I'm teaching. Do > you know of any such modules of the top of your head? Thanks! > > === > Quick question since the next class isn't until Monday. Do you know of > a

Re: [Tutor] A newbie question about running python scripts

2005-06-15 Thread Chuck Allison
Dear Tutors, Here is a query from a student from a corporate class I'm teaching. Do you know of any such modules of the top of your head? Thanks! === Quick question since the next class isn't until Monday. Do you know of any modules in Python that can convert a bitmap from one format to anoth

[Tutor] A newbie question about running python scripts

2005-06-15 Thread typetext
I am trying to run my first python scripts from a windows XP command line, and using Ivan Langhan's book Teach yourself python in 24 hours. I have installed Active Python 2.4 and have had no trouble running the scripts in the IDE . Following the instructions for running from a command line, I type,

Re: [Tutor] Popen4 and Paths Containing Spaces

2005-06-15 Thread Chuck Allison
Hello Hugo, Wednesday, June 15, 2005, 12:20:37 PM, you wrote: HGM> This problem is explained there. Also, why are you using those forward HGM> slashes in your Windows paths Meaning: d:/program HGM> files/winzip/wzzip.exe Windows doesn't care. The only place you can't use forward slashes i

Re: [Tutor] Process problem

2005-06-15 Thread Alberto Troiano
Hey Let me make you understand I need that levantamuertos.py run cotascamon.py (every script with it differents arguments that are passed) and then die letting the cotascamon.py scripts running independently Now, I don't know if my code is right, and thinking now you're right, levantamuertos.

Re: [Tutor] Buttons automatically executing

2005-06-15 Thread Danny Yoo
On Wed, 15 Jun 2005, Phillip Hart wrote: > Thanks for taking the time to read this. > > Excuse me if this falls under the boundaries of a "newbie" question, as > I am a self-taught programmer. Hi Phillip, It's a "newbie" question. But that's perfectly ok. *grin* > While using Tkinter to cr

Re: [Tutor] Buttons automatically executing

2005-06-15 Thread Michael Lange
On Wed, 15 Jun 2005 14:31:55 -0500 Phillip Hart <[EMAIL PROTECTED]> wrote: Hi Phillip, > #!usr/bin/python > > from Tkinter import * > > def location(x,y): > print "I am in row ",x," and column ",y > > > root=Tk() > root.geometry('300x300') > can=Canvas(root,width=250, height=250) > > bimage

[Tutor] Buttons automatically executing

2005-06-15 Thread Phillip Hart
Thanks for taking the time to read this. Excuse me if this falls under the boundaries of a "newbie" question, as I am a self-taught programmer. While using Tkinter to create buttons, something unexpected happens when the button commands call functions.  Namely, when I run the following, it immedi

Re: [Tutor] check PID

2005-06-15 Thread Hugo González Monteverde
Hi Alberto, Since then I've come across the very neat kill(pid, 0) trick, which I replied to you in another post. Hugo Alberto Troiano wrote: > Hey all > > I want to check if a PID number is running > I have the pid number from other program and I want to check if it's alive > Using Python 2.2

Re: [Tutor] Process problem

2005-06-15 Thread Hugo González Monteverde
Hi Alberto, Mmm I'm not sure if I get this all right. Why do you want to keep cotascamon running after levantamuertos dies?? If you're using system(), levantamuertos is waiting for cotascamon to finish completion before it continues running, there should be no point where levantamuertos *runs* whi

Re: [Tutor] Popen4 and Paths Containing Spaces

2005-06-15 Thread Hugo González Monteverde
Hi John, Read the Python gotchas page at: http://www.ferg.org/projects/python_gotchas.html This problem is explained there. Also, why are you using those forward slashes in your Windows paths Meaning: d:/program files/winzip/wzzip.exe Hugo Gooch, John wrote: > I am having problems with

Re: [Tutor] Controlling Where My Program Ends

2005-06-15 Thread Don Parris
On Wed, 15 Jun 2005 07:46:40 -0600 Mike Hansen <[EMAIL PROTECTED]> wrote: > > Subject: > > Re: [Tutor] Controlling Where My Program Ends > > From: > > Don Parris <[EMAIL PROTECTED]> > > Date: > > Tue, 14 Jun 2005 23:03:59 -0400 > > To: > > tutor@python.org > > > > To: > > tutor@python.org > > >

Re: [Tutor] Which Popen For Win32?

2005-06-15 Thread Kent Johnson
Hugo González Monteverde wrote: > Hi, maybe you'll want to give a try to: > > import commands > stat, outp = commands.getstatusoutput ("%s %s %s %s"%(zipCommand, > zipParameters, archive, fpath)) > > This will give you the exit code in stat and the whole text of the > putput in outp, so you may t

Re: [Tutor] Which Popen For Win32?

2005-06-15 Thread Hugo González Monteverde
Hi, maybe you'll want to give a try to: import commands stat, outp = commands.getstatusoutput ("%s %s %s %s"%(zipCommand, zipParameters, archive, fpath)) This will give you the exit code in stat and the whole text of the putput in outp, so you may take a look at it. It's way simpler than popen.

[Tutor] Process problem

2005-06-15 Thread Alberto Troiano
Hey all I have a problem with a program You see, I have a python script made in Python 2.2 that runs every 15 minutes on Linux Red Hat 9.0 This program (which code is attached below) named levantamuertos.py (spanish for death weakener) has to check in a database if the pids stored are running

[Tutor] Popen4 and Paths Containing Spaces

2005-06-15 Thread Gooch, John
I am having problems with using the Winzip command line tools and Python. Here is an example of the several dozen different ways I have tried to execute the Wzzip.exe utility with arguments using popen2 - This works (just runs the utility with not arguments ): cmd = "\"d:/program files/wi

Re: [Tutor] Controlling Where My Program Ends

2005-06-15 Thread Mike Hansen
> Subject: > Re: [Tutor] Controlling Where My Program Ends > From: > Don Parris <[EMAIL PROTECTED]> > Date: > Tue, 14 Jun 2005 23:03:59 -0400 > To: > tutor@python.org > > To: > tutor@python.org > > > On Wed, 15 Jun 2005 00:59:24 - > "DC Parris" <[EMAIL PROTECTED]> wrote: > > >>Never mind.

Re: [Tutor] can't see emacs timer in action

2005-06-15 Thread Pujo Aji
thanks Noel, It is great idea. pujo On 6/15/05, Max Noel <[EMAIL PROTECTED]> wrote: > > On Jun 14, 2005, at 23:17, Pujo Aji wrote: > > > I just use Ctrl+C Ctrl+C to run the code. > > The code wait for 3 second and show all i all together. > > > > I can't feel every second pass. > > > > pujo >

Re: [Tutor] can't see emacs timer in action

2005-06-15 Thread Pujo Aji
Hallo Danny, If we always start interpreter everytime we want to run python in emacs/xemacs, is it counter productive? I usually have to clean the buffer/output pane before running my program, so I always do this to start my program: C-c ! to start the interpreter C-c o to change my windows C-c C