I need to create a timer with Tkinter. I'd like to know a simple way and easy way. Here is my code. It doesn't work though. and I don't wanna use class. (def is OK)
import tkinter as tk
import os
import time
root = tk.Tk()
def Timer():
s=0
m=0
while s<=60:
os.system('cls')
label=(text= m, 'Minutes', s, 'Seconds')
time.sleep(1)
s+=1
if s==60:
m+=1
s=0
Timer()
label = tk.Label(root,justify="center")
label.pack()
root.mainloop()