On Sat, Jul 02, 2005 at 10:09:11PM +0200, Marcus Habermehl (BMH1980) wrote:
> Hi.
> 
> I have a very big problem with threads. Here some lines from my code:
> 
> def get_groups(self, *args):
>    gtk.gdk.threads_enter()
>    thread.start_new_thread(self.get_groups_thread, (None, None))
>    gtk.gdk.threads_leave()

You don't have to punt the gtk.gdk.threads_enter and
gtk.gdk.threads_leave call around the launch of a new
thread, but around the gdk (and gtk) calls in your
threads.

-- 
Antoon Pardon
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to