2016-03-01, 23:23
I'm still battling with Kodi (that's what it feels like) to create my addon. Part of it includes a dialog (XML based) that collects an email address from the user and then calls a URL with the value entered by a user into the dialog
However, I can't for the life of me work out how I'm supposed to do this.
I've created the dialog. (XML: http://pastebin.com/CDRfDSLK)
I'm calling Skin.SetString(email) on a focus onto the edit control...
And I have a script that processes a button click (python: http://pastebin.com/D5RUShz7)
But the script can't see the Skin value ... The log file ( http://pastebin.com/x00i5E93 ) shows the lookup via
showing a blank value. There's a line
Could this be why the lookup via Skin.String returns blank?
I'm very confused about how I should process my dialog, should I be doing it some other way than the onClick(controlId) handler ? I've seen a number of different ways of getting skin values too
eg
Which is correct?
However, I can't for the life of me work out how I'm supposed to do this.
I've created the dialog. (XML: http://pastebin.com/CDRfDSLK)
I'm calling Skin.SetString(email) on a focus onto the edit control...
And I have a script that processes a button click (python: http://pastebin.com/D5RUShz7)
But the script can't see the Skin value ... The log file ( http://pastebin.com/x00i5E93 ) shows the lookup via
Code:
xbmc.getInfoLabel('Skin.String(email)')
showing a blank value. There's a line
Code:
20:23:34 T:9424 WARNING: CSkinInfo: failed to load skin settings
Could this be why the lookup via Skin.String returns blank?
I'm very confused about how I should process my dialog, should I be doing it some other way than the onClick(controlId) handler ? I've seen a number of different ways of getting skin values too
eg
Code:
xbmc.getInfoLabel('Skin.String(email)')
xbmc.getInfoLabel( '$INFO[Skin.string(email)]' )
Which is correct?