Re: Serial connections and threads in a GUI

2009-09-29 Thread user
Aaron Hoover wrote: > I have a wx-based GUI application that I'd like to have read "streaming" > data from a serial port and plot that data using matplotlib and a figure > canvas. It's a robotic application where the workflow goes something > like this: > > 1) Connect to robot > 2) Configure robot

Re: Serial connections and threads in a GUI

2009-09-29 Thread sturlamolden
On 29 Sep, 23:56, Aaron Hoover 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