def __init__(self, **kwargs):
VKeyboard.draw_keys = draw_keys_improved # replaces library's function with one below that has a larger font size
super(MyKeyboardListener, self).__init__(**kwargs)
self._keyboard = Window.request_keyboard(
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.
vkeyboard = self._keyboard.widget
print type(vkeyboard)
print type(self._keyboard)
vkeyboard.layout = 'numeric.json'
vkeyboard.height = 350
#vkeyboard.font_size = 500
print vkeyboard.height
self._keyboard.bind(on_key_down=self._on_keyboard_down)
print self.size
评论列表
文章目录