LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2004, 09:57 PM   #1
krock923
Member
 
Registered: Jul 2004
Posts: 171

Rep: Reputation: 30
Countdown clock - how hard could it be?


I've been trying all day to get a simple countdown clock to work on my system with zero luck. I found a couple of apps for it but all of them required upgrading python or installing some other stuff first. Isn't there a nice and simple gui program for counting down a time? I'm using redhat 9. If there's not, how hard would it be to write? I've been wanting to take the leap into programming for some time now. maybe this is the way to start?
 
Old 07-21-2004, 11:07 PM   #2
hornbeck
LQ Newbie
 
Registered: Jul 2003
Location: Lawton, OK
Distribution: Gentoo
Posts: 25

Rep: Reputation: 15
Here would be a dirty countdown clock. It would ask the user for a number to count down from. than print each number out.

import time

a = input("Please enter the number to count down from: ")
b = 0

while a > b:
print a
time.sleep(1)
a = a - 1




That would be it in a nut shell. I don't really know how accurate you want.

John
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Countdown to 150,000 members! What an achievement! vharishankar General 6 12-20-2004 03:41 AM
command line args in a countdown Squeak2704 Programming 1 04-26-2004 12:27 PM
countdown and splash screen rebelcan Programming 1 07-31-2003 06:23 PM
Countdown to the new LOTP isajera General 26 03-03-2003 09:09 PM
Linux Installation Countdown and Questions kamisama Linux - General 6 11-06-2001 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration