이거 하려고하는데요
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번째줄처럼하면안되는건가요 ? 어떻게 소스를 수정해야하나요 ㅠ 구글링해도 안나오네요
제목 뭐라는건지 모르겠다 config 가 어딨어
18번째 줄이요. 제가 00:00:00 으로 출력을 하게 하고싶은데 이걸 어떻게 수정해야할지 모르겠어서요
"".join(["foo", "bar"])
조인함수를 쓰라는건가요? config 뒤에 ?