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

David Cole dlrdave at aol.com
Mon Feb 18 12:25:49 EST 2013


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


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130218/098cf9b4/attachment.html>


More information about the vtk-developers mailing list