On 29 Sep, 23:56, Aaron Hoover <ahoo...@eecs.berkeley.edu> wrote: > how can I allow the thread > access to the connection for reading, but then have it give up control > over the connection when it's done so the main GUI thread can access > the connection again for writing?
Protect read/write access to the serial port with a lock. Or use Candygram to pass Erlang-style messages to and from the thread owning the serial port. http://candygram.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list