I am just starting with threading and although I have it working in my simple test, I’m apparently doing something wrong in handling termination. I have a very simple test:
import frontPanel as FP import threading if __name__=='__main__': fpThread=threading.Thread(target=FP.frontPanel(),name='frontPanel') fpThread.start() fpThread.join()
This runs as expected until the thread terminates. At that point I get this error:
Tcl_AsyncDelete: async handler deleted by the wrong thread
The thread script displays a GUI using tkinter. When I close that window that script simply ends. What am I doing wrong that causes that error? TIA.