Kodi Community Forum
Skin.SetAddon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Skin.SetAddon (/showthread.php?tid=104826)



Skin.SetAddon - pecinko - 2011-07-04

Hi guys

I would like to use skin.setaddon but without specifying the type , so user can decide on his/her own.

I have tried

Skin.SetAddon(Addon1,) Skin.SetAddon(Addon1) Skin.SetAddon(Addon1,xbmc.addon)

without success.

Surely I'm doing something wrong?


- alexdzn - 2011-07-04

pecinko Wrote:Hi guys

I would like to use skin.setaddon but without specifying the type , so user can decide on his/her own.

I have tried

Skin.SetAddon(Addon1,) Skin.SetAddon(Addon1) Skin.SetAddon(Addon1,xbmc.addon)

without success.

Surely I'm doing something wrong?
May be something like this:

Skin.SetAddon(Addon1, xbmc.python.pluginsource)
or
Skin.SetAddon(Addon1-scriptpath,xbmc.python.pluginsource)


- pecinko - 2011-07-05

Well, than I suppose it's not possible.


- jmarshall - 2011-07-05

Not sure exactly what you're after. Perhaps describe what you want to achieve?


- pecinko - 2011-07-05

Sure. I have a section on home screen similar to "system" in confluence. I would like to provide a possibility for a user to make shortcuts to addons of his choice (again similar to Confluence). I would like however to give user a possibility to choose what type of addon to assign, so instead of forcing, say, video type with xbmc.addon.video - I should use?