Nevermind.. I seem to have solved the problem! Apparently, I was calling
gtk.threads_leave() in the wrong place. But that has all been fixed now.

Thanks for all the great help that is in the back logs of this mailing
list!

-nick

On Mon, 29 Jul 2002, Nicholas Burlett wrote:

> Originally, my threaded application was crashing constantly, but I fixed
> that with gtk.threads_enter() inside of the initialization run function of
> my thread.
>
> When I don't call gtk.main() from the main loop of the program, the thread
> behaves as it should, reading from the serial port, and timing out every
> second if no data is on the serial port. When gtk.main() is run, it runs
> maybe once every 5-10 seconds, and only when I'm planing with the widgets
> in the window.
>
> Am I missing something fundamental about how gtk and pygtk handle threaded
> applications?
>
> Thanks,
> Nick
>
> _______________________________________________
> 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/

Reply via email to