I'd suggest using either an idle or timeout callback. That should solve your immediate issues.
http://www.pygtk.org/pygtktutorial/ch-timeouts.html If you're working with multimedia (in particular if it's likely you'll want to provide live feeds in future) I'd suggest having a look at gstreamer, which integrates nicely into the GTK main loop. On Mon, Feb 14, 2011 at 1:32 PM, GSO <[email protected]> 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. > > RHEL6, pygtk2 v2.16, Gtk v2.18.9 > > Thanks in advance, > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
