|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 ![]()
__________________
*** Experimental Python Markup CGI V2 *** |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Pause command??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|