[PyQt] Multiprocessing and ProgressBar
meine at informatik.uni-hamburg.de
Thu Oct 7 14:05:59 BST 2010
Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati:
> I'm trying to develop a simple application that should do some
> calculation in a multiprocessing process and update a progress bar. I
> have tried to use the signal-slot technology to update the progress bar
> but at the end of my computation the gui crashes and i get:
> python: ../../src/xcb_io.c:242: process_responses: Assertion `(((long)
> (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed.
I would try using QThreads instead of the multiprocessing module. IIRC one
should not mix python threads and QThreads, and probably Qt's thread support
relies on the latter.
More information about the PyQt