Is there have any method to add Multiple Selections on addon?
#1
I want to add multiple selections to my Addon. Like Check boxes... Like Selecting Multiple Channels from a List. I think u know what I meaning. And I want to Write it to a xml file...

Is there have any method?
Reply
#2
AFAIK the Kodi multi-select dialog is not available for Python addons. But you can create it yourself. E.g. this is what you can do with PyXBMCt framework:
https://gist.github.com/romanvm/0c0025f5b7af58f0364b
Reply
#3
Ooh. I like this. This will look much better than my clumsy use of dialogselect and marking select items with a star!
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#4
(2015-09-01, 08:15)Roman_V_M Wrote: AFAIK the Kodi multi-select dialog is not available for Python addons.

if you run a nightly build, you can use the multi select dialog in python:
7750 (PR)

Quote:multiselect(heading, list [,autoclose]) -- Show a multi-select dialog.

heading : string or unicode - dialog heading.
options : list of string - options to choose from.
autoclose : [opt] integer - milliseconds to autoclose dialog. (default=do not autoclose)

*Note, Returns the selected items as a list of indices, or None if cancelled.

example:
- dialog = xbmcgui.Dialog()
- ret = dialog.multiselect("Choose something", ["Foo", "Bar", "Baz"])
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
(2015-09-01, 10:28)ronie Wrote:
(2015-09-01, 08:15)Roman_V_M Wrote: AFAIK the Kodi multi-select dialog is not available for Python addons.

if you run a nightly build, you can use the multi select dialog in python:
7750 (PR)

That is a good news! Smile
Reply
#6
Great Thanks Guys... Smile
Reply
#7
(2015-09-01, 10:28)ronie Wrote: if you run a nightly build, you can use the multi select dialog in python:
7750 (PR)

Do you know the time frame for this coming to Kodi stable?
Reply
#8
(2015-09-01, 13:25)eirki Wrote:
(2015-09-01, 10:28)ronie Wrote: if you run a nightly build, you can use the multi select dialog in python:
7750 (PR)

Do you know the time frame for this coming to Kodi stable?

nope, we haven't made a release schedule for jarvis yet.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Is there have any method to add Multiple Selections on addon?0