Strange Exception in Tkinter callback

mtTkinter allows multithreading with Tkinter, you can get it here: http://tkinter.unpythonic.net/wiki/mtTkinter Just import mtTkinter in place of Tkinter. This will allow you to insert text into a Text widget from multiple threads without conflict. I used it for some instant messaging software I wrote and it works wonderfully.

Handling a timeout error in python sockets

adds all the names without leading underscores (or only the names defined in the modules __all__ attribute) in foo into your current module. In the above code with from socket import * you just want to catch timeout as you’ve pulled timeout into your current namespace. from socket import * pulls in the definitions of everything inside of socket but doesn’t add socket itself. Many people consider import * problematic and try … Read more