2007-01-13, 19:26
it actually works on both, but xbmc_pc.exe crashes after it prints the results with the above code.
Another script I use with the same code, except it uses the keyboard inside a window class does not crash xbmc_pc.exe.
This code inside a window class does NOT crash xbmc_pc.exe.
Another script I use with the same code, except it uses the keyboard inside a window class does not crash xbmc_pc.exe.
This code inside a window class does NOT crash xbmc_pc.exe.
Code:
def getKeyboard(self, default = "", heading = ""):
keyboard = xbmc.Keyboard(default, heading)
try:
keyboard.setHiddenInput( True )
keyboard.doModal()
if (keyboard.isConfirmed()):
return keyboard.getText(), True
except:
pass
return default, False