[vtk-developers] Need the eyes of a python expert
David Gobbi
david.gobbi at gmail.com
Mon Feb 18 12:35:35 EST 2013
It should work if it calls "sys.exit" instead of just "exit".
iRen.AddObserver("ExitEvent", sys.exit)
You'll also have to add "import sys" near the top of the file,
i.e. around the same place as the "import vtk" line.
- David
On Mon, Feb 18, 2013 at 10:08 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Folks,
>
> The TestInteractorEventRecorder python test fails on a windows platform:
> http://open.cdash.org/testDetails.php?test=163279306&build=2816982
>
> It complains that this line:
> iRen.AddObserver("ExitEvent", exit)
> TypeError: a callable object is required
>
> It passes on other windows systems. This one is a VS71. Perhaps there
> is a more portable way to accomplish the same thing?
>
> Bill
>
> --
> Unpaid intern in BillsBasement at noware dot com
More information about the vtk-developers
mailing list