From 504345ccec9ef606eb513f03ff8ee458ae065668 Mon Sep 17 00:00:00 2001 From: qua-non Date: Sun, 19 Jan 2014 01:50:20 +0530 Subject: [PATCH] Examples:keyboard_listener.py change `request_keyboard` to be compatible with current master --- examples/widgets/keyboardlistener.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/widgets/keyboardlistener.py b/examples/widgets/keyboardlistener.py index f49b2f565..2ff860bc8 100644 --- a/examples/widgets/keyboardlistener.py +++ b/examples/widgets/keyboardlistener.py @@ -4,12 +4,13 @@ kivy.require('1.0.8') from kivy.core.window import Window from kivy.uix.widget import Widget + class MyKeyboardListener(Widget): def __init__(self, **kwargs): super(MyKeyboardListener, self).__init__(**kwargs) self._keyboard = Window.request_keyboard( - self._keyboard_closed, self) + self._keyboard_closed, self, 'text') if self._keyboard.widget: # If it exists, this widget is a VKeyboard object which you can use # to change the keyboard layout.