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 py...@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/
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.
I'm creating a PyGtk desktop client for motion
http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome - a CCTV
program. The GUIs available all require Apache and MySQL - which is
overkill if you don't need the industrial level features, it's better
keeping things simple as well for security reasons.
I haven't ever created or managed an opensource project before (or
used Python or Gtk for that matter, they are both pretty cool though).
But I am at this point I think now I have that working heading over
to Google code. The project will be called gmotion.
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.
- Patrick