1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from tkinter import *
 
centisec =0 
sec = 0
min = 0
 
def increase_time() :
    global centisec
    global sec
    global min
    
    label.after(10,increase_time)
    centisec += 1
    sec += (centisec//100)
    centisec %= 100
    min+=(sec//60)
    sec%=60
    label.config(text=str(min,sec,centisec))
    
window = Tk()
window.title("Timer")
 
label = Label(window, text="00:00:00", fg="black", font="Arial 120 bold")
label.pack()
 
button = Button(window, text="Start", command = increase_time)
button.pack()
 
window.mainloop()
 
 
 
 
cs





18레인 어케해야하노 ㅠㅠ