[wxPython-users]Multi-thread logging to textctrl

Frank Aune Frank.Aune at broadpark.no
Thu Oct 11 00:34:25 PDT 2007


On Thursday 11 October 2007 07:44:48 甜瓜 wrote:
> But logging library indeed synchronize the access to
> OutputWindowStream by internal lock. I'm confused why the race
> condition still occurs.

You are updating the GUI from a thread other than main, and if you need to do 
this you will certainly have to take care notifying the main thread that a 
GUI update is pending.

Otherwise you will get a race-condition in the GUI, which you experience as if 
the application hangs.

Best regards,
Frank




More information about the wxpython-users mailing list