PyQt QThreadPool error

h0uk vardan.pogosyan at gmail.com
Thu Jan 7 20:32:07 CET 2010


Hello.

I have the following code:

            #workers = {}
            QtCore.QThreadPool.globalInstance().setExpiryTimeout
(300000)
            QtCore.QThreadPool.globalInstance().setMaxThreadCount(1)
            for i in range(1, int(userscnt) + 1):
                work = wk.Worker(i)
                # connect signals
                work.mmShowCaptcha.connect(self.show_captcha_dlg)
                work.log.connect(self.handle_log)
                self.captcha_answer.connect(work.mmCaptchaAnswer)
                work.setAutoDelete(True)
                QtCore.QThreadPool.globalInstance().start(work)



On last line of code ( QtCore.QThreadPool.globalInstance().start
(work) ) i get an error:

SystemError: error return without exception set

What is wrong in my code??? Any advise???

Thanks



More information about the Python-list mailing list