from TKinter import *
class Ui(Frame):
def __init__(self)
Frame.__init__(self, None)
self.grid()
bquit=Button(self, text="Quit", command=self.quit_pressed)
bquit.grid(row=0, column=0)
def quit_pressed(self):
self.destroy()
app=Ui()
app.mainloop()
"Quit"버튼을 누를 때 왜 Tkinter 프로그램이 제대로 종료되지 않습니까?Python Tkinter 응용 프로그램이 제대로 종료되지 않습니다.
IDLE을 사용하고 있습니까? –
IDLE을 사용하지 않습니다. – jldupont