MCPcopy Create free account
hub / github.com/geekcomputers/Python / start_timer

Function start_timer

Pomodoro (tkinter).py:93–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def 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
111def count_down(count):

Callers 1

count_downFunction · 0.85

Calls 1

count_downFunction · 0.85

Tested by

no test coverage detected