#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    neer Newcastle, England
    Posts
    12
    Rep Power
    0

    Red face Pause command???


    is there a pause or wait command in python?

    I want to make a simple clock on screen.
    you enter the current time and then every second it prints out the new time

    thanks beforehand
  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    The standard time module will do the trick:

    Code:
    import time
    time.sleep(0.1)
    If it is a Tkinter GUI application then you should consider using the after method to call a routine periodically.

    grim

IMN logo majestic logo threadwatch logo seochat tools logo