Dear All,
I want to make a function handler of the mouse at vtk_protocol.py. I inserted the following code in the class VtkCone:
@exportRpc("viewport.mouse.interaction")
def updatemousedoublecone(self, event):
frequency = 2500 # Set Frequency To 2500 Hertz
duration = 1000 # Set Duration To 1000 ms == 1 second
winsound.Beep(frequency, duration)
print("I am here\n")
When it is ran the server and the page “localhost:1234” in the browser the beep sounds when it is pressed the left button of the mouse (perhaps right also and perhaps added movement of the mouse).
I want that the beep sounds only with the movement of the mouse alone.
Where must be changed code or flags and which to achieve that?
I want to thanks in advance for the possible help,
Luís Gonçalves