mirror of https://github.com/kivy/kivy.git
doc: added explanatory comment to examples/widgets/keyboardlistener.py
This commit is contained in:
parent
cffcd8d44f
commit
c49f3a9461
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue