add events docs + PEP8 fixes

This commit is contained in:
Julien Bouquillon 2012-08-09 00:27:23 +02:00
parent c75f92ecfc
commit 3d60b4436e
1 changed files with 11 additions and 6 deletions

View File

@ -128,6 +128,12 @@ class VKeyboard(Scatter):
VKeyboard is an onscreen keyboard with multitouch support.
Its layout is entirely customizable and you can switch between available
layouts using a button in the bottom right of the widget.
:Events:
`on_key_down`: keycode, internal, modifiers
Fired when the keyboard received a key down event (key press).
`on_key_up`: keycode, internal, modifiers
Fired when the keyboard received a key up event (key release).
'''
target = ObjectProperty(None, allownone=True)
@ -434,7 +440,6 @@ class VKeyboard(Scatter):
# the goal now is to map both point, calculate the diff between them
diff = dpos - cpos
# we still have an issue, self.pos represent the bounding box, not the
# 0,0 coordinate of the scatter. we need to apply also the diff between
# them (inside and outside coordinate matrix). It's hard to explain, but