On Mon, 2011-02-14 at 00:32 +0000, GSO wrote: 
> Quick coding problem if I may.
> I am displaying jpegs from CCTV cameras in a HBox, but need some way
> to refresh the images in that box.  I need to show the main window,
> but then refresh the images in that window.  How would I do this given
> after opening the window the programs then waits at the gtk.Main event
> loop.
> Have tried with the multiprocessing module, but any new threads don't
> seem to be able to access the memory of the main window to be able to
> refresh the images.

1. Start a thread that runs a Manager
<http://docs.python.org/library/multiprocessing.html#using-a-remote-manager> 
for an object that pushes events into the main loop via an idle handler.
2. Start worker processes for each camera that connect to the manager in
the main process and send updates via the manager.

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to