I would like to add an observer to the scrollbar events of a given view. I cannot find the right event to add the callback function.
viewerNode = slicer.util.getNode("vtkMRMLSliceDisplayNode1") # Or should that be the vtkMRMLSliceNode class?
observerID = viewerNode.AddObserver(<WHICH_CLASS__WHICH_METHOD>, onScrollbarChanged)
you can then do something like: slicer.app.layoutManager().sliceWidget("Red").sliceController().sliceOffsetSlider().valueIsChanging.connect(lambda x : print(x))