I am trying to add a button to close my app but the typical root.quit doesent seem to work and i dont understand why?
Here is the code piece:
root = Tk()
root.title("Fahrkartenautomat")
root.iconbitmap("E:\pyth\ka.ico")
wk = Label(root, text="Willkommen!")
ksb = Button(root, text="Kurzstraeke", state=NORMAL, command=ksc(KS,s))
tkb = Button(root, text="Tageskarte", state=NORMAL, command=tkc(TG,s))
mkb = Button(root, text="Monatskarte", state=NORMAL, command=mkc(MK,s))
jkb = Button(root, text="Jahreskarte", state=NORMAL, command=jkc(JK,s))
wt= Button(root, text="Weiter", fg="#00AA00", state=NORMAL)
exb= Button(root, text="Schliessen", fg="#FF0000", bg="#000000", state=NORMAL, command=root.quit)