Hello everyone,
I would like to have a custum function executed in every run of the main loop. How can I do that?
Unfortunately all documentation on how to write a custum MainLoop, i.e. replacing wx.App.MainLoop seems to be outdated (older then 2004) and does not work for me.
The reason is that I want to implement a simple thread save messaging system (similar to pubsub). In my main GUI thread I would poll for new messages from within the main loop and then deliver them. Message sending would work from any thread.
Cheers,
Patrick
captain_error wrote:
I would like to have a custum function executed in every run of the
main loop. How can I do that?
Unfortunately all documentation on how to write a custum MainLoop,
i.e. replacing wx.App.MainLoop seems to be outdated (older then 2004)
and does not work for me.
The reason is that I want to implement a simple thread save messaging
system (similar to pubsub). In my main GUI thread I would poll for new
messages from within the main loop and then deliver them. Message
sending would work from any thread.
You don't need to modify the main loop for this. You can send custom
messages today from any thread, and have a handler in your main window
to receive them.
ยทยทยท
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.