I have a tkinter program that when you X out of it a function is called by using:
root.protocol('WM_DELETE_WINDOW', in_close)
Where in_close is a procedure that is called. The issue is that this behavior is not reproduced when you shut down the computer. For the purposes of my program, it is completely necessary for this function to be triggered when the program is closed or you shut the machine down.
I'm on python 3.3.3 just in case. Does anyone know how to reproduce this when it's being shut off? :(
Any ideas are greatly appreciated!! Thanks!!