Re: [Tutor] python timers

2011-04-23 Thread Alan Gauld
"Brad Desautels" wrote Hello, my name is Brad and I am a student at Suny Plattsburgh. and Python programming is a course I am taking this semester. Hi, Welcome to the list. It will help in future if you do NOT reply to an existing message to start a new discussion. Doing so causes your me

Re: [Tutor] python timers

2011-04-22 Thread Brad Desautels
-bounces+outsideme99=live@python.org] On Behalf Of michael scott Sent: Thursday, April 21, 2011 12:38 AM To: tutor@python.org Subject: [Tutor] python timers Hello how do you do. Today's question has to do with the time module. I want to add a timer to my gui. As I was messing around with it

Re: [Tutor] python timers

2011-04-21 Thread Alan Gauld
"michael scott" wrote As I was messing around with it I found a way to measure time... but I'm positive there is a more elegant way to deal with this than what I've thrown together. def thing(): start = time.time() while 1: now = time.time() if now == start + 10.0:

[Tutor] python timers

2011-04-20 Thread michael scott
Hello how do you do. Today's question has to do with the time module. I want to add a timer to my gui. As I was messing around with it I found a way to measure time... but I'm positive there is a more elegant way to deal with this than what I've thrown together. def thing(): start =