Hello!
I want to AddObserver onto scale bar, but i dont know how. I added doubleclick event to int, but it is not working:
self.scalar_bar = vtkScalarBarActor()
self.scalar_bar.AddObserver("LeftButtonDoubleClickEvent", self.scale_bar_settings_dialog)
self.ren.AddActor2D(self.scalar_bar)
def scale_bar_settings_dialog(self, obj: vtkObject, _event: int) -> None:
"""."""
print("Test")
Idk, why. Can somebody give me a hint?