Skip to content Skip to sidebar Skip to footer

Wxpython 3.0 & Multiprocessing - Update Gui From Background Process

From my wxpython GUI app I have an rsync task that I kick off as a multiprocessing.Process. The idea is to update a wx.textCtrl with the constant output from this background proces

Solution 1:

The problem is that the child process can't write back to the main process. Use a queue to pass messages back to the main process, and update the control from within a timer or a background thread that waits for messages from the queue.


Post a Comment for "Wxpython 3.0 & Multiprocessing - Update Gui From Background Process"