Hi all,
quick question about “RemoveObserver”==>
After I did the following to add one observer
“”"
crosshairNode=slicer.util.getNode(“Crosshair”)
crosshairNode.AddObserver(slicer.vtkMRMLCrosshairNode.CursorPositionModifiedEvent, self.onMouseMoved)
“”"
I did try
crosshairNode.RemoveObserver(slicer.vtkMRMLCrosshairNode.CursorPositionModifiedEvent)
but no effect from this line.
how to remove the observer?