[pygtk] gtk mainloop and threads

2004-07-02 Thread Keir Lawson
im new to programming with gtk and was wondering how to work around the
gtk mainloop, which seems to stop all currently running threads, to
allow threads to continue running.  im pretty sure im missing something
glaringly obvious.

thanks in advance

Keir Lawson
-- 

We would rather die on our feet than live on out knees

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] gtk mainloop and threads

2004-07-02 Thread Prash
Check the thread in this list with a subject Threading. There are a few
things you can do like use generators.

See section 20 on PyGTK FAQ. Compile pyGtk with thread support first. You
are probably missing gtk.threads_init , threads_enter and threads_leave.

http://www.async.com.br/faq/pygtk/index.py?req=index

I stay away from threads - keeps the code simple.

if you just want to run one function on a separate thread then this might
interest you (uses python threads)

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/84317






 im new to programming with gtk and was wondering how to work around the
 gtk mainloop, which seems to stop all currently running threads, to
 allow threads to continue running.  im pretty sure im missing something
 glaringly obvious.

 thanks in advance

 Keir Lawson
 --

 We would rather die on our feet than live on out knees

 ___
 pygtk mailing list   [EMAIL PROTECTED]
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/