MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / countdown

Function countdown

Color_Game/main.py:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def countdown():
26 global timeleft
27 if timeleft > 0:
28 timeleft -= 1
29 time_label.config(text=f"Time left: {timeleft}")
30 time_label.after(1000, countdown)
31 else:
32 # messagebox.showwarning ('Attention', 'Your time is out!!')
33 scoreshow()
34
35
36def record_highest_score():

Callers 1

start_gameFunction · 0.85

Calls 1

scoreshowFunction · 0.85

Tested by

no test coverage detected