I have a question, how to detect a button click? I find everywhere a solution (not useful in my opinion)
button = Button(window,command=when_clicked)
I need to detect the closing of the wiget.
button = tk.Button(exit_button, text="Exit", command=new_a_program.destroy)
I thought to use a counter but it doesn't work because it triggers me one step in the module by clicking on the button.
Thank you for your help :