wx.LogStatus() + thread

Hi,

can someone please explain to me why I can't use wx.LogStatus from inside a thread? I searched the net but didn't find anything.

wx.LogMessage() and wx.LogVerbose() are fine though.

The problem is quite simple so I do not enclose the source of a test program. But you can find it here: http://nopaste.ch/c8555e54009400a.html

Is it because, like the demo says, the GUI is not thread safe? So I actually have to send an event for every interaction with the GUI? Just want to be sure.

Daniel

PGP.sig (186 Bytes)

Have you tried using wx.CallAfter?

wx.CallAfter(callable, arguments)

etc

···

On Dec 13, 2007 12:43 AM, Daniel Link no.promiscuity@googlemail.com wrote:

Hi,

can someone please explain to me why I can’t use wx.LogStatus from
inside a thread? I searched the net but didn’t find anything.

Have you tried using wx.CallAfter?

Works great, thanks!