Re: Gui thread and async jobs.

2007-05-09 Thread Phil Thompson
On Wednesday 09 May 2007 3:58 pm, Grant Edwards wrote: > On 2007-05-08, king kikapu <[EMAIL PROTECTED]> wrote: > > Hi, i am reading the book "Python Cookbook, 2nd edition" and i > > encountered a very handy recipe, the one that is called > > "Combining GUIs and Asynchronous I/O with Threads" > > >

Re: Gui thread and async jobs.

2007-05-09 Thread Grant Edwards
On 2007-05-08, king kikapu <[EMAIL PROTECTED]> wrote: > Hi, i am reading the book "Python Cookbook, 2nd edition" and i > encountered a very handy recipe, the one that is called > "Combining GUIs and Asynchronous I/O with Threads" > > It is talking about retain a main GUI thread, doing async work >

Re: Gui thread and async jobs.

2007-05-09 Thread Jarek Zgoda
king kikapu napisaƂ(a): > Hi, i am reading the book "Python Cookbook, 2nd edition" and i > encountered a very handy recipe, the one that is called "Combining > GUIs and Asynchronous I/O with Threads" > > It is talking about retain a main GUI thread, doing async work with > worker threads and have

Re: Gui thread and async jobs.

2007-05-08 Thread king kikapu
On May 8, 5:52 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> It depends on the toolkit you use. Qt has thread-safe custom events in > >> 3.x, and afaik signal/slots (and thus events) are generally thread-safe > >> in 4.x. So, no problems there. > > >> Diez > > > Aha...So you do not use pol

Re: Gui thread and async jobs.

2007-05-08 Thread Diez B. Roggisch
>> It depends on the toolkit you use. Qt has thread-safe custom events in >> 3.x, and afaik signal/slots (and thus events) are generally thread-safe >> in 4.x. So, no problems there. >> >> Diez > > Aha...So you do not use polling there (in Qt), correct ? You don't need to, no. Diez -- http://m

Re: Gui thread and async jobs.

2007-05-08 Thread king kikapu
On May 8, 4:00 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > king kikapu wrote: > > Hi, i am reading the book "Python Cookbook, 2nd edition" and i > > encountered a very handy recipe, the one that is called "Combining > > GUIs and Asynchronous I/O with Threads" > > > It is talking about retai

Re: Gui thread and async jobs.

2007-05-08 Thread Diez B. Roggisch
king kikapu wrote: > Hi, i am reading the book "Python Cookbook, 2nd edition" and i > encountered a very handy recipe, the one that is called "Combining > GUIs and Asynchronous I/O with Threads" > > It is talking about retain a main GUI thread, doing async work with > worker threads and have both

Gui thread and async jobs.

2007-05-08 Thread king kikapu
Hi, i am reading the book "Python Cookbook, 2nd edition" and i encountered a very handy recipe, the one that is called "Combining GUIs and Asynchronous I/O with Threads" It is talking about retain a main GUI thread, doing async work with worker threads and have both talk through a Queue object to