2016-02-02, 06:30
Pages: 1 2
2016-02-02, 08:25
System.GetBool(pvrmanager.enabled)
2016-02-02, 08:30
(2016-02-02, 08:25)sualfred Wrote: [ -> ]System.GetBool(pvrmanager.enabled)
So can u tell me how to edit that? I mean is there have any method to enable or disable without going to settings Tv menu?
Like changing true to false on a file
Or is there any ways to use enable disable using a python script? Or via a Addon settings menu?
2016-02-02, 08:33
There is no builtin function to edit Kodi settings. But the Skin Helper Service script has such an command. Take a look at the documentation.
Edit:
Never used that command but I assume its exactly what u r looking for: <onclick>StopPVRManager</onclick>
Edit:
Never used that command but I assume its exactly what u r looking for: <onclick>StopPVRManager</onclick>
2016-02-02, 09:11
(2016-02-02, 08:33)sualfred Wrote: [ -> ]There is no builtin function to edit Kodi settings. But the Skin Helper Service script has such an command. Take a look at the documentation.
Edit:
Never used that command but I assume its exactly what u r looking for: <onclick>StopPVRManager</onclick>
Thanks. It also helped me for another script. But it was not for this time need...
2016-02-02, 09:29
(2016-02-02, 08:33)sualfred Wrote: [ -> ]There is no builtin function to edit Kodi settings. But the Skin Helper Service script has such an command. Take a look at the documentation.
Edit:
Never used that command but I assume its exactly what u r looking for: <onclick>StopPVRManager</onclick>
Can we use SetBool?
2016-02-02, 09:41
As I said: No.
Skins aren't allowed to change Kodi settings.
You have to use script.skin.helper.service for this
Skins aren't allowed to change Kodi settings.
You have to use script.skin.helper.service for this
Code:
RunScript(script.skin.helper.service,action=togglekodisetting,setting=[NAME OF THE SETTING IN GUISETTINGS])
2016-02-02, 10:05
(2016-02-02, 09:41)sualfred Wrote: [ -> ]As I said: No.
Skins aren't allowed to change Kodi settings.
You have to use script.skin.helper.service for this
Code:RunScript(script.skin.helper.service,action=togglekodisetting,setting=[NAME OF THE SETTING IN GUISETTINGS])
If we use it to make it false value then what is the correct code?
pvrmanager.enabled?
2016-02-02, 10:06
<control type="radiobutton" id="123456">
<label>PVR</label>
<onclick>XBMC.RunScript(script.skin.helper.service,action=togglekodisetting,setting=pvrmanager.enabled)</onclick>
<selected>System.GetBool(pvrmanager.enabled)</selected>
</control>
<label>PVR</label>
<onclick>XBMC.RunScript(script.skin.helper.service,action=togglekodisetting,setting=pvrmanager.enabled)</onclick>
<selected>System.GetBool(pvrmanager.enabled)</selected>
</control>
2016-02-02, 10:13
mmmm I need to add it to Python script or to Addon Settings :/
2016-02-02, 10:13
(2016-02-02, 10:06)sualfred Wrote: [ -> ]<control type="radiobutton" id="123456">
<label>PVR</label>
<onclick>XBMC.RunScript(script.skin.helper.service,action=togglekodisetting,setting=pvrmanager.enabled)</onclick>
<selected>System.GetBool(pvrmanager.enabled)</selected>
</control>
mmmm I need to add it to Python script or to Addon Settings :/
2016-02-02, 10:15
This is just an common radio toggle button, which can be used in any .xml skin file.
2016-02-02, 10:19
(2016-02-02, 10:15)sualfred Wrote: [ -> ]This is just an common radio toggle button, which can be used in any .xml skin file.
https://drive.google.com/file/d/0B0hU-CT...sp=sharing
Can I add it to this?
2016-02-02, 10:20
Can you please tell me what exactly you want to achieve? Because that's an addon settings xml file. This has nothing to do with the skin engine.
2016-02-02, 10:22
I want to change that pvrmanager.enabled value from true to false or false to true using py (Python file). I mean via a Addon
Pages: 1 2