[pygtk] Updating widgets within threads
Bottiger, Maxwell - AES
Maxwell.Bottiger at itt.com
Fri Sep 4 22:53:03 WST 2009
Hi,
I have an implementation methodology question. I'm putting together an app which runs a bunch of external devices. All my devices are on different serial ports and run at different frequencies. I'd like to use one thread to monitor each device, then have the thread update it's relevant section of the GUI. I've been playing with updating a progress bar with a thread this morning and I've found once I start the thread the main window freezes until the thread completely exits.
Obviously this isn't working. What is the best way to go about this? I don't want to freeze my main window by putting sleep calls in the main loop, but I do need to update the display when new data becomes available.
Thanks!
This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.
More information about the pygtk
mailing list