Kodi Community Forum
Jump to specified line using xbmcgui.dialog().select? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Jump to specified line using xbmcgui.dialog().select? (/showthread.php?tid=233737)



Jump to specified line using xbmcgui.dialog().select? - Lunatixz - 2015-07-30

Can you focus to a specified line using xbmcgui.dialog().select?
ex:
Code:
select = xbmcgui.Dialog().select(header, list.selectitem[i], autoclose)

docs:
Code:
select(self, heading, list, autoclose=0)

Show a select dialog.

heading: string or unicode - dialog heading.
list: string list - list of items.
autoclose: integer - milliseconds to autoclose dialog.

Note:
    autoclose = 0 - This disables autoclose.
    Returns the position of the highlighted item as an integer.

Example:
    dialog = xbmcgui.Dialog()
    ret = dialog.select('Choose a playlist', ['Playlist #1', 'Playlist #2, 'Playlist #3'])