[pygtk] Problem with threads

David Cohen dacohen at gmail.com
Fri Mar 3 01:30:38 WST 2006


I already figured out. I called gtk.threads_init() and it works. :)
thanks

BR,

David

On 3/1/06, Brian <dol-sen at telus.net> wrote:
> On Sat, 2006-25-02 at 13:19 -0400, David Cohen wrote:
> > Hi,
> >
> > I don't know if it is a problem with pygtk. I am trying to use thread
> > (from threading module) on a program using als pygtk. I create the
> > thread and pass a function as the target (mythread =
> > threading.Thread(target = myfunc). Then I call the mythread.start()
> > but the thread never really starts, just when I call the
> > mythread.join() method. But it I do the samething without the pygtk,
> > the thread works well.
> > Dows anybody could help me?
> >
> > BR,
> >
> > David
>
> Did you call gtk.threads_init() first?
>
> --
> Brian <dol-sen at telus.net>
>
>


More information about the pygtk mailing list