Virtual keyboard and password

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
senufo Offline
Junior Member
Posts: 18
Joined: Sep 2011
Reputation: 0
Post: #1
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
find quote