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

Threads in PyGTK: keep typing while ping-ing

2009-02-16 Thread Mamahita Sela
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 ping so fast (even for not reply host, around 3 s for 2