Re: [Tutor] creating a regularly placed fields in a line

2012-04-26 Thread Wayne Werner
On Wed, 25 Apr 2012, Prasad, Ramit wrote: snip Useful to know both though, since lots of people swear by % substitution. And % formatting is slightly faster - if you end out doing tons of formatting and you find your script isn't fast enough, it's worth taking a look there. -Wayne

[Tutor] Python equivalent of kill -0 PID

2012-04-26 Thread Sean Carolan
In bash you can do this to see if a process is running: [scarolan@kurobox:~/bin]$ kill -0 24275 [scarolan@kurobox:~/bin]$ echo $? 0 Is there a python equivalent? I tried using os.kill() but did not see any way to capture the output. ___ Tutor maillist

Re: [Tutor] Python equivalent of kill -0 PID

2012-04-26 Thread Joel Goldstick
On Thu, Apr 26, 2012 at 3:24 PM, Sean Carolan scaro...@gmail.com wrote: In bash you can do this to see if a process is running: [scarolan@kurobox:~/bin]$ kill -0 24275 [scarolan@kurobox:~/bin]$ echo $? 0 Is there a python equivalent?  I tried using os.kill() but did not see any way to

Re: [Tutor] Python equivalent of kill -0 PID

2012-04-26 Thread Martin Walsh
On 04/26/2012 02:24 PM, Sean Carolan wrote: In bash you can do this to see if a process is running: [scarolan@kurobox:~/bin]$ kill -0 24275 [scarolan@kurobox:~/bin]$ echo $? 0 Is there a python equivalent? I tried using os.kill() but did not see any way to capture the output. You might

[Tutor] tkinter question

2012-04-26 Thread Khalid Al-Ghamdi
hi everyone, I'm usting python 3.2 on windows, and I'm doing these GUI exercises using tkinter. I've created this simple window with two widgets (a label and a button) the button is supposed to exit the root window, but the problem is it doesn't seem to, for some reason. It looks like it is

[Tutor] PIL and converting an image to and from a string value

2012-04-26 Thread Chris Hare
Here is what I am trying to: the application user chooses an image file. I want to store the image data in a field in a sqlite database. My understanding from the reading I have done is that I have to convert the image data into a string , which I can then store in the database.