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

Function set_custom_durations

Pomodoro (tkinter).py:156–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155
156def set_custom_durations():
157 global custom_work_min, custom_break_min
158 try:
159 work_val = int(entry_work.get())
160 break_val = int(entry_break.get())
161 custom_work_min = work_val
162 custom_break_min = break_val
163 canvas.itemconfig(left_custom, text=f"{custom_work_min}m")
164 canvas.itemconfig(right_custom, text=f"{custom_break_min}m")
165 except ValueError:
166 pass
167
168
169# ---------------------------- UI SETUP ------------------------------- #

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected