2010-12-14, 03:48
Hi guys,
I have had a python coder write me a script to unpack a zip file containing the required files for a skin theme, but we can't find anything to allow the next step. I would like to allow the user to make the just unpacked theme the current theme, but can't find anything that seems likely to work. What I suggested to my tame scripter was:
First of all, yes I know that's not python, it was just to give an idea of how I thought we could try coding it. But apparently I can't use Skin.HasTheme(theme) as it is a boolean condition that can only be used from within the skin.
Does anyone have any suggestions on what we could try?
Thanks for your time
Wyrm (xTV-SAF)
I have had a python coder write me a script to unpack a zip file containing the required files for a skin theme, but we can't find anything to allow the next step. I would like to allow the user to make the just unpacked theme the current theme, but can't find anything that seems likely to work. What I suggested to my tame scripter was:
PHP Code:
while !Skin.HasTheme(theme)
xbmc.executebuiltin("XBMC.Skin.Theme")
Does anyone have any suggestions on what we could try?
Thanks for your time
Wyrm (xTV-SAF)