doc: added explanatory comment to examples/widgets/keyboardlistener.py

This commit is contained in:
Zen-CODE 2014-01-10 14:27:15 +02:00
parent cffcd8d44f
commit c49f3a9461
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ class MyKeyboardListener(Widget):
super(MyKeyboardListener, self).__init__(**kwargs)
self._keyboard = Window.request_keyboard(
self._keyboard_closed, self)
if self._keyboard.widget:
# If it exists, this widget is a VKeyboard object which you can use
# to change the keyboard layout.
pass
self._keyboard.bind(on_key_down=self._on_keyboard_down)
def _keyboard_closed(self):