What happens if you run your program without IDLE?
(either with right-click and run or run from Command Prompt window?)
I would not be surprised if your problems go away. IDLE runs a saved file in a separate pythonw process. Printing (or writing) to stdout requires sending output back to the IDLE process. I can imagine that doing that from 2 subthreads could lead to conflicts.
If the problems do go away, then we should probably close this as won't fix. IDLE is a development environment, not a production running environment |