Do I need another thread ?

David Woods wrote:

You might try sticking a wx.Yield() statement in your read loop. This
allows the OS to process messages, such as the one saying that you've
clicked the checkbox.

in the handler for the checkbox, change a flag that is checked in your read loop.

It's also better to use:

wx.GetApp().Yield()

Yield()is now a method of wx.App, and the global function may go away in future versions.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov