codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem exiting from a script using tkinter


Hi!

Why this does not work?!

from tkinter import *

def terminate(root):
    root.quit


root=Tk()
#b=Button(root,text="QUIT",command=root.quit)
b=Button(root,text="QUIT",command=lambda: terminate(root))
b.pack()

mainloop()

Thanks