Re: running python scripts via crontab

2007-06-09 Thread davelist
On Jun 9, 2007, at 9:10 AM, Mr SZ wrote: > Hello all, > I wrote a simple python script to send mail via smtp to my gmail > acc.I can run it as python /home/phil/Desktop/smtp.py but when I > add the same to my crontab as > > * * * * * /usr/bin/python2.5 /home/phil/Desktop/smtp.py > > ,it doesn

Re: Why isn't this query working in python?

2007-05-27 Thread davelist
On May 27, 2007, at 4:01 PM, Steve Holden wrote: > erikcw wrote: >> On May 26, 8:21 pm, John Machin <[EMAIL PROTECTED]> wrote: >>> On May 27, 5:25 am, erikcw <[EMAIL PROTECTED]> wrote: >>> >>> >>> On May 25, 11:28 am, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Fri, 2007-05-25 at 09:51

convert time string in UTC to time in local time

2007-03-08 Thread davelist
I'm guessing there is an easy way to do this but I keep going around in circles in the documentation. I have a time stamp that looks like this (corresponding to UTC time): start_time = '2007-03-13T15:00:00Z' I want to convert it to my local time. start_time = time.mktime(time.strptime(start_t

Re: Simple but fast 2D lib for drawing pixels

2006-10-01 Thread davelist
On Oct 1, 2006, at 6:28 PM, Peter Mexbacher wrote: > Hello, > > we want to teach absolute programming newbies > a first language, so they can start programming > simple scientific models. > > We thought Python would make a good choice for > a first language; but where pretty stumped when > we fou

Re: Read from .glade

2006-09-06 Thread davelist
On Wednesday, September 06, 2006, at 10:36AM, <[EMAIL PROTECTED]> wrote: >Hello, > >I've got the following problem: I've got a Userinterface that is made >in Glade, so i've got a >.glade file. What I want is to get the id's of every widget from the >class GtkEntry from a given window. > >The gla

Re: Is there an elegant way to dir() module from inside?

2006-08-24 Thread davelist
On Aug 24, 2006, at 10:18 AM, volcano wrote: > I am looking for a way to discover which classes a module contains > from > "inside". I am building a testing class that should, when > instatntiated > within any module, locate certain classes within the containing > module. > Words of wisdom?

Re: classes on GladeGen

2006-08-16 Thread davelist
On Aug 16, 2006, at 8:05 AM, Rafal Janas wrote: > Hi. > > I create simple program using glade and GladeGen. > In main.py is main class and in wind.py is wind class. > In main class is entry1 and button1. When I click on button1 I open > wind > class wind.Wind() > In wind class is entry1 field w