I am running a Tk program and need to capture all errors as they occur and feed them to a subroutine. Any suggestions on how to go about this are greatly appreciated. Everything I have found so far is to have the errors interact with the GUI and that is not what I want to do. Thanks in advance