Threaded GUI slowing method execution?

sturlamolden sturlamolden at yahoo.no
Fri Oct 2 22:18:08 CEST 2009


On 2 Okt, 21:30, Dave Angel <da... at ieee.org> wrote:

> There could very well be multiprocess support in wxPython.  I'd check
> there first, before re-inventing the wheel.

I don't think there is. But one can easily make a thread in the
subprocess that polls a pipe and calls wx.PostEvent or wx.CallLater
when something is received. I particularly like the Queue object in
multiprocessing for this.

One could also use win32api.SendMessage from pywin32 to send the event
from one process to another. The parent must know the hwnd of the
subprocess main wx.Frame. The subprocess gets that from calling the
GetHandle() method of its wx.Frame, and must post it back to the
parent, presumably via a pipe.








More information about the Python-list mailing list