Re: [Tutor] Timer with exe command

2011-02-28 Thread Alan Gauld
"Kaden McLaws" wrote I would like to set up the following using python: A timer that is activated when a user logs on to our computer, then shuts the computer down when the timer runs out You can do that from the Operating System, no programming required. But hopw you do it wioll depend on wh

Re: [Tutor] Timer with exe command

2011-02-28 Thread Corey Richardson
On 02/28/2011 03:30 PM, Corey Richardson wrote: > On 02/27/2011 10:02 PM, Kaden McLaws wrote: >> I would like to set up the following using python: A timer that is activated >> when a user logs on to our computer, then shuts the computer down when the >> timer runs out (no matter what, ending all

Re: [Tutor] Timer with exe command

2011-02-28 Thread Corey Richardson
On 02/27/2011 10:02 PM, Kaden McLaws wrote: > I would like to set up the following using python: A timer that is activated > when a user logs on to our computer, then shuts the computer down when the > timer runs out (no matter what, ending all programs). First, a raw input is > used, so that if

Re: [Tutor] Timer with exe command

2011-02-28 Thread Wayne Werner
On Sun, Feb 27, 2011 at 9:02 PM, Kaden McLaws wrote: > > > I would like to set up the following using python: A timer that is > activated when a user logs on to our computer, then shuts the computer down > when the timer runs out (no matter what, ending all programs). First, a raw > input is used,

[Tutor] Timer with exe command

2011-02-28 Thread Kaden McLaws
I would like to set up the following using python: A timer that is activated when a user logs on to our computer, then shuts the computer down when the timer runs out (no matter what, ending all programs). First, a raw input is used, so that if you know the password, you may shut off the time

Re: [Tutor] Timer

2005-12-08 Thread bob
At 07:18 PM 12/6/2005, Liam Clarke-Hutchinson wrote: >Hi, > >time.sleep() takes an argument as seconds. Oh yeah I know that but forgot.Sigh. Thanks for the correction. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tuto

Re: [Tutor] Timer

2005-12-06 Thread Liam Clarke-Hutchinson
Hi, time.sleep() takes an argument as seconds. Regards, Liam Clarke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bob Sent: Wednesday, 7 December 2005 3:59 p.m. To: Joseph Quigley; tutor@python.org Subject: Re: [Tutor] Timer At 06:57 AM 12/6

Re: [Tutor] Timer

2005-12-06 Thread bob
At 06:57 AM 12/6/2005, Joseph Quigley wrote: >I'd like to make a 30 minute timer. How an I do that? With time? import time time.sleep(30) ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Timer

2005-12-06 Thread Joseph Quigley
Sorry, this is a little console project to tell me when there new headlines on slashdot.org using their rss file. All it does is see if there's something different and if there is it will tell you. Here's my timer: while True:     if count > 1800:     break     time.sleep(1)   

Re: [Tutor] Timer

2005-12-06 Thread Joseph Quigley
thanks. I'm also trying time.time() I hope one works. One disadvantage though, now that i think of it is that time.sleep() freezes everything and I don't think I want that but I'll try it anyway.On 12/6/05, Pujo Aji <[EMAIL PROTECTED] > wrote:Probably the simplest thing is to make the computer slee

Re: [Tutor] Timer

2005-12-06 Thread Kent Johnson
Joseph Quigley wrote: > I'd like to make a 30 minute timer. How an I do that? With time? A little context would be helpful. If you are writing a standalone app that just needs to wait 30 minutes, then do something, use time.sleep(). If the program needs to be able to do something else at the sa

Re: [Tutor] Timer

2005-12-06 Thread Pujo Aji
Probably the simplest thing is to make the computer sleep in a specific time.Example:def main():    time.sleep(2) # sleeping 2 second    print 'finish'Cheers,pujo On 12/6/05, Joseph Quigley <[EMAIL PROTECTED]> wrote: I'd like to make a 30 minute timer. How an I do that? With time? Thanks,    Joe--

[Tutor] Timer

2005-12-06 Thread Joseph Quigley
I'd like to make a 30 minute timer. How an I do that? With time? Thanks,    Joe-- There are 10 different types of people in the world.Those who understand binary and those who don't. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/l

Re: [Tutor] Timer on CGI

2005-09-19 Thread Adam Cripps
On 9/19/05, Alan Gauld <[EMAIL PROTECTED]> wrote: > > 1. I want to store the results in a mySQL database - I've done > > this > > kind of thing before using PHP - are there any good tutorial > > resources > > for using mysql with python? > > There is a generic DB API howto document and I have a da

Re: [Tutor] Timer on CGI

2005-09-19 Thread Alan Gauld
> 1. I want to store the results in a mySQL database - I've done > this > kind of thing before using PHP - are there any good tutorial > resources > for using mysql with python? There is a generic DB API howto document and I have a database topic in my tutor which uses SQLite but the basic princ

Re: [Tutor] Timer on CGI

2005-09-19 Thread Christopher Arndt
Adam Cripps schrieb: > Some of my pupils at school are working through simple mathematic > problems (multiplication tables) through my website. I basically show > some tables, they enter the results and then get feedback on how they > did. > > I have two questions - and my guess is that one will b

[Tutor] Timer on CGI

2005-09-19 Thread Adam Cripps
Some of my pupils at school are working through simple mathematic problems (multiplication tables) through my website. I basically show some tables, they enter the results and then get feedback on how they did. I have two questions - and my guess is that one will be easier than the other. 1. I w