[PyQt] Multiprocessing and ProgressBar

Nicola Creati ncreati at inogs.it
Thu Oct 7 14:13:37 BST 2010


Hans Meine wrote:
> Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati:
>   
>> Hello,
>> 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.
>
> HTH,
>   Hans
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>   

Hi,
with QThread I'm able to make the code work but I need to send 
computation to more than one core in my application.

Nicola



More information about the PyQt mailing list