Error with draw()

version 8.4 FPS: 34.4115620704 Fatal Python error:

    > PyEval_RestoreThread: NULL tstate

    > This application has requested the Runtime to terminate it
    > in an unusual way. Please contact the application's support
    > team for more information.

Search the archives for this message -- it has occurred in a number of
guises. We've never found a way to make tkagg work in every supported
mode on winxp w/o this message. It's mostly considered harmless since
it only happens at program termination but it is annoying.

Suggested solution. Don't use "pylab animation" (ie repeated calls to
draw in interactive mode). Instead, use tk's idle handler or timer to
trigger animation calls with a proper tk event loop, as in
examples/anim_tk.py.

Hope this helps,
JDH