Re: Threads in PyGTK: keep typing while ping-ing

2009-02-18 Thread bieffe62
On 17 Feb, 02:53, Mamahita Sela wrote: > Dear FB, > > > As you have been already told, join() blocks until the > > thread is > > terminated. and you should avoid that. > > A simple fix could by add a timeout to t.join, doing > > something like : > >         t.join(JOIN_TIMEOUT); > >         if not

Re: Threads in PyGTK: keep typing while ping-ing

2009-02-16 Thread Mamahita Sela
Dear FB, > As you have been already told, join() blocks until the > thread is > terminated. and you should avoid that. > A simple fix could by add a timeout to t.join, doing > something like : > t.join(JOIN_TIMEOUT); > if not t.isAlive(): > print t.result > Thanks for

Re: Threads in PyGTK: keep typing while ping-ing

2009-02-16 Thread bieffe62
On 16 Feb, 14:47, Mamahita Sela wrote: > Dear All, > > I have read several howtos for threading in PyGTK. I have tried some but with > no luck. > > What i want is: i can keep typing in gtk.TextView while periodically doing > ping some hosts. > > I think, the thread part is working since i can pi

Re: Threads in PyGTK: keep typing while ping-ing

2009-02-16 Thread Jean-Paul Calderone
On Mon, 16 Feb 2009 05:47:22 -0800 (PST), Mamahita Sela wrote: Dear All, I have read several howtos for threading in PyGTK. I have tried some but with no luck. What i want is: i can keep typing in gtk.TextView while periodically doing ping some hosts. You don't need threads for this. The