Adding ErrorEvent handlers to all VTK objects in Python

I’ve constructed a Python example that shows how one can minimally-invasively change the behaviour of all classes in a module. The example illustrates how to add an ErrorEvent handler automatically to all Python VTK classes at run-time.

See the VTK-users mailing list thread here

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.