()
| 23 | |
| 24 | |
| 25 | def 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 | |
| 36 | def record_highest_score(): |
no test coverage detected