Commit c788134e authored by Prabhu Ramachandran's avatar Prabhu Ramachandran
Browse files

BUG: Avoided using deprecated SetExitMethod.

parent 5c94e4eb
......@@ -335,7 +335,7 @@ def wxVTKRenderWindowInteractorConeExample():
widget = wxVTKRenderWindowInteractor(frame, -1)
widget.Initialize()
widget.Start()
widget.SetExitMethod(frame.Close)
widget.AddObserver("ExitEvent", lambda o,e,f=frame: f.Close())
ren = vtk.vtkRenderer()
widget.GetRenderWindow().AddRenderer(ren)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment