[vtkusers] python ErrorEvent

Charl P. Botha c.p.botha at its.tudelft.nl
Fri May 17 18:43:32 EDT 2002


Dear VTKers,

When a VTK class makes use of the vtkErrorMacro() macro, the instance
invokes an ErrorEvent.  In C++ this ErrorEvent is invoked with a callData
pointing to the actual string parameter with which vtkErrorMacro was called.
So, an observer could make use of this string.

I'm trying to do the same in Python.  However, in python the observer
function is called with only the instance and the string 'ErrorEvent' as
parameters.  Does anyone know if it's possible to get to the callData (the
error message) from Python?

Thanks,
Charl

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list