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/

Reply via email to