()
| 91 | |
| 92 | |
| 93 | def start_timer(): |
| 94 | global ROUND, total_time, is_paused |
| 95 | canvas.itemconfig(progress_arc, extent=0) |
| 96 | |
| 97 | if ROUND % 2 == 1: # Work session |
| 98 | total_time = custom_work_min * 60 |
| 99 | label.config(text="Work", fg=GREEN) |
| 100 | else: # Break session |
| 101 | total_time = custom_break_min * 60 |
| 102 | label.config(text="Break", fg=PINK) |
| 103 | |
| 104 | count_down(total_time) |
| 105 | start_button.config(state=DISABLED) |
| 106 | pause_button.config(state=NORMAL) |
| 107 | play_button.config(state=DISABLED) |
| 108 | is_paused = False |
| 109 | |
| 110 | |
| 111 | def count_down(count): |
no test coverage detected