On Sat, 2004-08-28 at 23:19, Yann Le Boulanger wrote:
> >
> > So this didn't work?
> > ===
> > thr = GajimThread('gt')
> > thr.start()
> > while thr.isAlive()
> > thr.join(timeout=0.1)
> > time.sleep(2)
> > print "core"
> > ===
> >
>
>
> This works, but it's not what I want : I doesn't want the main thread
> (core.py) to stop when I close the second thread. What I want is that
> when the second thread finish, gtk closes all opened windows and stops,
> but the main thread must continue running.
>
> any idea ?
How about:
thr = GajimThread('gt')
thr.start()
while 1:
if thr.isAlive():
thr.join(timeout=0.1)
time.sleep(2)
print "core"
> Thanks
> Asterix
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Steve McClure <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/