chrono.py

Created by gengisclan

Created on November 28, 2021

625 Bytes

Un petit chrono mignon


from time import *
ta=monotonic()
from ion import *
from turtle import *
penup()
hideturtle()
goto(-150,0)
write("Appuie sur la touche Effacer")
goto(-130,-20)
write(" pour stopper le chrono")
goto(60,0)
while True:
  write("       ")
  sleep(0.5)
  write("Effacer")
  sleep(0.5)
  if keydown(KEY_BACKSPACE):
    tb=monotonic()
    print(tb-ta)  
    goto(-150,-70)
    write("Voie le temps en appuyant sur")
    for _ in range(5):
      goto(-35,-90)
      write("      ")
      sleep(0.5)
      write("Retour")
      sleep(0.5)
    write("Retour")
    raise BaseException("Temps ce clignotement atteint")
    

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.