"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
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
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
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,
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
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
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
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
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)
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
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
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--
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
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
> 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
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
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
17 matches
Mail list logo