Is there an Example for the on_motion Events?
I tried to bind them like in the documentation but it fails.
Here is the Code Snipped
class TestApp(Widget):
def __init__(self, **kwargs):
super(TestApp, self).__init__(**kwargs)
Window.bind(on_motion=self.on_motion)
self.add_widget(Button(text='hello world'))
def on_motion(self, etype, motionevent):
# will receive all motion events.
print(motionevent)
print(etype)
#print(motionevent)
pass
Its just called when i do a mouseclick, but Leapmotion isnt initialized. So did i have to start the Leapfinger eventprovider manually, cause its registert in the leapfinger.py.
Thanks a lot :)