tkinter askyesno message box behaviour tkinter askyesno message box behaviour tkinter tkinter

tkinter askyesno message box behaviour


In the code you posted, you are opening three dialogs. Every time you call askyesno you will get a dialog. You need to call askyesno once, save the value that it returns, then use that value in your test.

result = messagebox.askyesno(...)if result:    ...