John Hunter wrote:
> I don't think this is what you want. gtk is already threaded. By
> doing things in the gtk mainloop, you are using their threading. You
> are asking for a world of pain if you try and mix in python threading
> unless you really know what you are doing. The point of the exam
John Hunter wrote:
> Use the gtk mainloop and do your figure updates in a timeout add or a
> idle handler (as suggested in the animation tutorial at
> http://www.scipy.org/Cookbook/Matplotlib/Animations
Excellent, thanks. Your sample code adapted nicely; appended below for
posterity.
dan
imp
I need to have a plot window hang around and be occasionally updated by
my script as it does things. I've been looking through examples and have
not been able to get anything to work.
My current approach, inspired by strip_chart_demo.py and others in the
animation examples, is:
import gobject,