Okay, here's the patch. I'm also including a quick demo
> with a button that gets added directly to the canvas.
OK, great. Steve could you take a look at this when you get a minute
and give some feedback about whether you think this is a god idea.
> On a side note, I can't get the CVS version to work under
> ipython, and get this error (it was working fine with
> 0.83.2):
> ---------------------------------------------------------------------------
> exceptions.SystemError Traceback (most recent call last)
> SystemError: Objects/moduleobject.c:48: bad argument to
> internal function Segmentation fault
Have you done the standard clean install
> sudo rm -rf build /your/path/to/site-packages/matplotlib
> sudo python setup.py install
I recently upgraded pycxx in CVS and my first guess is you have some stale
object code lying around.
JDH