Re: PyQt QThreadPool error

2010-01-08 Thread h0uk
On 8 янв, 16:27, Phil Thompson wrote: > On Thu, 7 Jan 2010 15:07:10 -0800 (PST), h0uk > wrote: > > ... > > > > > Phil you right about app.exec_(). But situation is sligthly different. > > > I want to have more than one Job. I add these Jobs into QThreadPool > > trough cycle. And I also want these

Re: PyQt QThreadPool error

2010-01-08 Thread Phil Thompson
On Thu, 7 Jan 2010 15:07:10 -0800 (PST), h0uk wrote: ... > Phil you right about app.exec_(). But situation is sligthly different. > > I want to have more than one Job. I add these Jobs into QThreadPool > trough cycle. And I also want these Jobs to run sequentially. > > The following code illu

Re: PyQt QThreadPool error

2010-01-07 Thread h0uk
On 8 янв, 03:02, Phil Thompson wrote: > On Thu, 7 Jan 2010 13:03:24 -0800 (PST), h0uk > wrote: > > > On 8 янв, 01:02, "Diez B. Roggisch" wrote: > >> h0uk schrieb: > > >> > Hello. > > >> > I have the following code: > > >> >             #workers = {} > >> >             QtCore.QThreadPool.globalIn

Re: PyQt QThreadPool error

2010-01-07 Thread Phil Thompson
On Thu, 7 Jan 2010 13:03:24 -0800 (PST), h0uk wrote: > On 8 янв, 01:02, "Diez B. Roggisch" wrote: >> h0uk schrieb: >> >> >> >> > Hello. >> >> > I have the following code: >> >> >             #workers = {} >> >             QtCore.QThreadPool.globalInstance().setExpiryTimeout >> > (30) >> >    

Re: PyQt QThreadPool error

2010-01-07 Thread h0uk
On 8 янв, 02:25, "Diez B. Roggisch" wrote: > h0uk schrieb: > > > > > On 8 янв, 01:02, "Diez B. Roggisch" wrote: > >> h0uk schrieb: > > >>> Hello. > >>> I have the following code: > >>>             #workers = {} > >>>             QtCore.QThreadPool.globalInstance().setExpiryTimeout > >>> (30)

Re: PyQt QThreadPool error

2010-01-07 Thread Diez B. Roggisch
h0uk schrieb: On 8 янв, 01:02, "Diez B. Roggisch" wrote: h0uk schrieb: Hello. I have the following code: #workers = {} QtCore.QThreadPool.globalInstance().setExpiryTimeout (30) QtCore.QThreadPool.globalInstance().setMaxThreadCount(1) for i

Re: PyQt QThreadPool error

2010-01-07 Thread h0uk
On 8 янв, 01:02, "Diez B. Roggisch" wrote: > h0uk schrieb: > > > > > Hello. > > > I have the following code: > > >             #workers = {} > >             QtCore.QThreadPool.globalInstance().setExpiryTimeout > > (30) > >             QtCore.QThreadPool.globalInstance().setMaxThreadCount(1) >

Re: PyQt QThreadPool error

2010-01-07 Thread Diez B. Roggisch
h0uk schrieb: Hello. I have the following code: #workers = {} QtCore.QThreadPool.globalInstance().setExpiryTimeout (30) QtCore.QThreadPool.globalInstance().setMaxThreadCount(1) for i in range(1, int(userscnt) + 1): work = wk.Wo

PyQt QThreadPool error

2010-01-07 Thread h0uk
Hello. I have the following code: #workers = {} QtCore.QThreadPool.globalInstance().setExpiryTimeout (30) QtCore.QThreadPool.globalInstance().setMaxThreadCount(1) for i in range(1, int(userscnt) + 1): work = wk.Worker(i)