pozz <pozzu...@gmail.com>: > The real problem is that retrieving status from remote device is a > slow operation. If the GUI thread blocks waiting for the answer, the > GUI blocks and the user complains.
Correct. Obnoxious, blocking APIs abound. However, I have usually used processes (instead of threads) to encapsulate blocking APIs. Processes have neater resource isolation and a better-behaving life cycle. For example, you can actually kill a process while you can't kill a thread. Marko -- https://mail.python.org/mailman/listinfo/python-list