Kivy Gesture Box #791

Closed
wants to merge 0 commits into
from

Projects

None yet

3 participants

@buchuki
Contributor
buchuki commented Nov 13, 2012

This is more of a Pull Request For Comment than a Pull Request. I don't think it's ready to be merged yet. ;)

I've created an alpha version of a Kivy "Gesture Box" that interprets gestures on the screen and issues an on_gesture event if they occur. If a gesture isn't recognized, the touch event is passed through to any child widgets of the box.

Things that need commenting on:

  • I borrowed a lot of this code from Carousel, but I only understand about 85% of it. Please double check that I didn't leave something in there that doesn't need to be there.
  • I wrote documentation, but when I run make html, the autobuild.py does not pick up that this file exists. It looks like it's supposed to be automatically picked up, but I must have missed a flag somewhere.
  • It passes touches through to child widgets, but it doesn't pass motion. For example, putting a Carousel inside a GestureBox doesn't work. (This is probably a silly thing to do. Less silly would be putting a ScrollView inside a GestureBox)
  • Because of that, I haven't actually seen how the documentation I wrote renders in Sphinx
  • I didn't do a lot of testing to see how well it works.
  • Are there procedures in place to unit test new widgets?
Contributor

Those big long strings could do with a bit more explanation. I'm not entirely sure I understand them and what they do.

rubik commented Jan 3, 2013

You may be interested in: #638 but neither me nor bionoid had had time to finish the work. It's basically a gesture recognizer, you can look at the demo to see how it works. First you train it giving it 1 or more examples, then it recognizes it.

Contributor
buchuki commented Dec 25, 2013

Erm, I have simply lost this code because I didn't put it on a separate branch.

Meh, it wasn't functional anyway. ;-)

@buchuki buchuki closed this Dec 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment