[vtk-developers] Need the eyes of a python expert

Bill Lorensen bill.lorensen at gmail.com
Mon Feb 18 12:27:43 EST 2013


I also grepped, but since I'm a python newbie, I wasn't sure which is preferred.


On Mon, Feb 18, 2013 at 12:25 PM, David Cole <dlrdave at aol.com> wrote:
> Maybe do it the same way as some of the other ExitEvent python occurrences?
>
> Looks like "exit" is the thing that's not a callable object....
>
>
> $ find . | grep -E "\.py$" | xargs grep ExitEvent
> ./Examples/ParallelProcessing/MPI/Python/ParallelCone.py:
> iren.AddObserver("ExitEvent", ExitMaster)
> ./Interaction/Widgets/Testing/Python/TestInteractorEventRecorder.py:
> iRen.AddObserver("ExitEvent", exit)
> ./Wrapping/Python/vtk/gtk/GtkGLExtVTKRenderWindowInteractor.py:
> gvtk.AddObserver("ExitEvent", lambda o,e,x=None: x)
> ./Wrapping/Python/vtk/gtk/GtkVTKRenderWindowInteractor.py:
> gvtk.AddObserver("ExitEvent", lambda o,e,x=None: x)
> ./Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py:
> widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit())
>
> ./Wrapping/Python/vtk/qt4/QVTKRenderWindowInteractor.py:
> widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit()
> )
> ./Wrapping/Python/vtk/tk/vtkTkRenderWindowInteractor.py:
> pane.AddObserver("ExitEvent", lambda o,e,q=quit: q())
> ./Wrapping/Python/vtk/wx/wxVTKRenderWindowInteractor.py:
> widget.AddObserver("ExitEvent", lambda o,e,f=frame: f.Close(
> ))
>
>
>
> exit
>
>
>
>
> -----Original Message-----
> From: Bill Lorensen <bill.lorensen at gmail.com>
> To: VTK Developers <vtk-developers at vtk.org>
> Cc: David Gobbi <david.gobbi at gmail.com>
> Sent: Mon, Feb 18, 2013 12:08 pm
> Subject: [vtk-developers] Need the eyes of a python expert
>
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtk-developers mailing list