Kodi Community Forum

Full Version: Virtual keyboard and password
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Here is my problem, in the plugin vdrrecord (see http://passion-xbmc.org/developpement-py...s%27arrete /) I use the keyboard to enter a password that provides access to the recording of VDR for XBMC. It works fine with the PC keyboard display is hidden.
When I use the remote to enter the code I see the button appear before it is changed to *. This is probably the key to the fact that more than one letter on the number of times it is pressed (eg the 2 key, pressure = a, b = 2 pressures, pressure = 3 c, 4 pressure = 2).

Here's the code I use to call the virtual keyboard
Code:
kb = xbmc.Keyboard('', 'heading', True)
kb.setDefault('') # optional
kb.setHeading(locstr) # optional
kb.setHiddenInput(True) # optional
kb.doModal()
if (kb.isConfirmed()):
          pin = kb.getText()

Maybe the solution would be to have only the numeric keypad, but I do not know how to do it from a python script.


thank you for your help

Senufo