python - wxpython 3.0 & multiprocessing - update GUI from background process -


from wxpython gui app have rsync task kick off multiprocessing.process.

the idea update wx.textctrl constant output background process.

i using pubsub subscribe method.

the functions work fine can't textctrl update.

if use callafter method crash/error:

the process has forked , cannot use corefoundation functionality safely. must exec(). break on the_process_has_forked_and_you_cannot_use_this_corefoundation_functionality___you_must_exec() debug.

if don't use method , try append text directly textctrl nothing happens.

any ideas?

thanks!

adam

the problem child process can't write main process. use queue pass messages main process, , update control within timer or background thread waits messages queue.