2013-09-24, 15:11
Hi All,
I'm working on a simple service + script addon, and I've come up against some things that have left me scratching my head:
- Automatic update for an always-running service addon.
How does this work exactly? The service addon will always be running (unless xbmc.abortRequested is set), so how does XBMC manage to replace running code? (So far I've seen XBMC poll the addons.xml in the repo, but, for most users at least, it doesn't appear to be updating automatically)
- Is there a tab panel control I can use in an addon?
Something like the addon settings dialog: tab buttons along the top, with each tab being a separate sub-window of sorts.
(I can monkey one together of course, but I'm just hoping that there's a standard one available already)
- How do I (programmatically) get a context menu on a ListItem of a xbmcgui.WindowXML?
The closest I've been able to do is a xbmcgui.Dialog().select(...) (e.g. here), which works I guess, but it's not as pretty as I'd like!
The addon in question is here: https://github.com/bricky/xbmc-addon-tvtumbler
Any help appreciated
I'm working on a simple service + script addon, and I've come up against some things that have left me scratching my head:
- Automatic update for an always-running service addon.
How does this work exactly? The service addon will always be running (unless xbmc.abortRequested is set), so how does XBMC manage to replace running code? (So far I've seen XBMC poll the addons.xml in the repo, but, for most users at least, it doesn't appear to be updating automatically)
- Is there a tab panel control I can use in an addon?
Something like the addon settings dialog: tab buttons along the top, with each tab being a separate sub-window of sorts.
(I can monkey one together of course, but I'm just hoping that there's a standard one available already)
- How do I (programmatically) get a context menu on a ListItem of a xbmcgui.WindowXML?
The closest I've been able to do is a xbmcgui.Dialog().select(...) (e.g. here), which works I guess, but it's not as pretty as I'd like!
The addon in question is here: https://github.com/bricky/xbmc-addon-tvtumbler
Any help appreciated