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

Function reset_timer

Pomodoro (tkinter).py:76–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75# ---------------------------- TIMER FUNCTIONS ------------------------------- #
76def reset_timer():
77 global ROUND, timer_mec, total_time, is_paused, remaining_time
78 ROUND = 1
79 is_paused = False
80 remaining_time = 0
81 if timer_mec is not None:
82 window.after_cancel(timer_mec)
83 canvas.itemconfig(timer_text, text="00:00")
84 label.config(text="Timer")
85 tick_label.config(text="")
86 total_time = 0
87 canvas.itemconfig(progress_arc, extent=0)
88 start_button.config(state=NORMAL)
89 pause_button.config(state=DISABLED)
90 play_button.config(state=DISABLED)
91
92
93def start_timer():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected