<font color='black' size='2' face='arial'>Maybe do it the same way <font size="2">as some of the other ExitEvent py<font size="2">thon occurrences?<br>
<br>
<font size="2">Looks like "exit" is the thing that's not a callable object....<br>
<br>
<br>
</font><font size="2">$ find . | grep -E "\.py$" | xargs grep ExitEvent<br>
./Examples/ParallelProcessing/MPI/Python/ParallelCone.py:    iren.AddObserver("ExitEvent", ExitMaster)<br>
./Interaction/Widgets/Testing/Python/TestInteractorEventRecorder.py:        iRen.AddObserver("ExitEvent", exit)<br>
./Wrapping/Python/vtk/gtk/GtkGLExtVTKRenderWindowInteractor.py:    gvtk.AddObserver("ExitEvent", lambda o,e,x=None: x)<br>
./Wrapping/Python/vtk/gtk/GtkVTKRenderWindowInteractor.py:    gvtk.AddObserver("ExitEvent", lambda o,e,x=None: x)<br>
./Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py:    widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit())<br>
<br>
./Wrapping/Python/vtk/qt4/QVTKRenderWindowInteractor.py:    widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit()<br>
)<br>
./Wrapping/Python/vtk/tk/vtkTkRenderWindowInteractor.py:    pane.AddObserver("ExitEvent", lambda o,e,q=quit: q())<br>
./Wrapping/Python/vtk/wx/wxVTKRenderWindowInteractor.py:    widget.AddObserver("ExitEvent", lambda o,e,f=frame: f.Close(<br>
))<br>
<br>
<br>
</font></font></font><font color="black" face="arial" size="2">

<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black"><blockquote style="border-left: 2px solid blue; padding-left: 3px;"><pre><tt>exit</tt></pre></blockquote></div>



<div> <br>

</div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: Bill Lorensen <bill.lorensen@gmail.com><br>

To: VTK Developers <vtk-developers@vtk.org><br>

Cc: David Gobbi <david.gobbi@gmail.com><br>

Sent: Mon, Feb 18, 2013 12:08 pm<br>

Subject: [vtk-developers] Need the eyes of a python expert<br>

<br>









<div id="AOLMsgPart_0_6de96788-8ef8-4244-a2d8-585b338eb10b" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>Folks,

The TestInteractorEventRecorder python test fails on a windows platform:
<a href="http://open.cdash.org/testDetails.php?test=163279306&build=2816982" target="_blank">http://open.cdash.org/testDetails.php?test=163279306&build=2816982</a>

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 <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a>

</tt></pre>
</div>

 <!-- end of AOLMsgPart_0_6de96788-8ef8-4244-a2d8-585b338eb10b -->



</div>

</font></font>