I'm building a pomodoro app and working on count down function. I don't know how to implement and need some guidance.
import tkinter as tk
import time
window = tk.Tk()
window.title("Pomodoro")
window.geometry("500x500")
WORK_TIME = 25
def count_down():
pass
title_label = tk.Label(
window,
text="Pomodoro Timer",
font=("Consolas", 30, "bold"),
bg="white",
fg="black"
)
title_label.pack(pady=20)
time_label = tk.Label(
window,
text="00:00",
font=("Consolas", 48, "bold"),
bg="white",
fg="black"
)
time_label.pack(pady=10)
start_button = tk.Button(
window,
text="Start",
font=("Consolas", 14),
command= count_down
)
start_button.pack(pady=5)
reset_button = tk.Button(
window,
text="Reset",
font=("Consolas", 14),
command=None
)
reset_button.pack(pady=5)
window.mainloop()