Hi,
I'm playing around with threads and wx (leading to wxAnyThread). I want
the worker threads to know nothing about the main thread - so I need a
messaging system (pubsub).
I attached a "runnable" example: the wx main thread starts two worker
threads. Randomly they issue a pubsub message that should be received by
the UpdateStatusText method in the main thread.
This doesn't work because the wxAnyThread decorator changes the
signature of the listening method. So sending the message fails pubsub's
argument test:
SenderUnknownOptArgs: Some optional args unknown in call to
sendMessage('('ui', 'change', 'statustext')', text): text
Is it possible to combine both approaches? Or it's possible to disable
pubsub's argument testing feature? Other ideas?
Thanks for any help,
Hannes