How do I program using wxPython a method that occurs when my program closes?
I’m creating a program that needs to save data to a text file when you close it. I know how to write data to files, but not how to use the program closing as a trigger.
I haven’t done a lot wiht wxPython, but would it help to wrap your code in a try/catch/finally clause structure, and then put the file closing bit in the finally clause?