diff --git a/examples/widgets/keyboardlistener.py b/examples/widgets/keyboardlistener.py index 604338fd8..f49b2f565 100644 --- a/examples/widgets/keyboardlistener.py +++ b/examples/widgets/keyboardlistener.py @@ -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):