Access Skin.Togglesettings via python
#1
Is there a way to call skin.togglesettings (from window xml) inside python?


My problem is that I would like to save some state and I can't figure out how to do it, can anyone help me, please? Wink
Reply
#2
andre99 Wrote:Is there a way to call skin.togglesettings (from window xml) inside python?


My problem is that I would like to save some state and I can't figure out how to do it, can anyone help me, please? Wink

andre99,

I'm not a python coder, but I have used the following in a script for my skin:

PHP Code:
xbmc.executebuiltin("XBMC.Skin.SetString(home-scriptname," SCRIPTNAME ")"
Having a quick look at the wiki, you could try something like:

PHP Code:
xbmc.executebuiltin("XBMC.Skin.ToggleSetting(setting)"
As I said, I'm not a python coder, so you could probably do something more elegant, but the above worked fine for me.

Wyrm (xTV SAF)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply
#3
Works fine.!!!

Thanks a lot Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Access Skin.Togglesettings via python0