tkinter gui python quit() insteantly quits instead of running code above

Viewed 24

Hey guys im trying to quit a programm using quit()

Im using tkinter for the gui

code snippet:

   if tag == "quit" and rounded > 70:
        message3 = f"{botName}: {response}\n\n"
        self.textWidget.configure(state=NORMAL)
        self.textWidget.insert(END, message3, 'bot')
        print(f"{message3}")
        self.textWidget.configure(state=DISABLED)
        self.textWidget.see(END)
        Tk.after(close(),3000)

weird thing is that the print section actually prints the correct thing in my console but it doesnt show on my GUI and just quits

0 Answers
Related