[pygtk] Problem with threads

Brian dol-sen at telus.net
Wed Mar 1 23:04:28 WST 2006


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