XBMC window
#1
Brick 
Hello,
I am new in Python Development (xbmc).
I successfully created a program that displays a list containing at startup (item01, item 02 ....)


@plugin.route('/')
def list_categories():
items = [{ 'label': 'Item 01', 'path': '', 'thumbnail': ''}, {'label': 'Item 02', 'path':'', 'thumbnail': ''},
{'label': 'Item 03', 'path': '', 'thumbnail': ''}]
return items



Image

My problem, I want to display a child window when I click on the items whose content is of type table.
Reply
#2
As far as I can see, you're using xbmcswift. Have you read the documentation available on xbmcswift site?
Reply
#3
Yes, I use xbmcswift.
but I do not understand how to open child windows with content as an table.
Reply
#4
(2014-02-24, 17:33)kais_msalmi Wrote: Yes, I use xbmcswift.
but I do not understand how to open child windows with content as an table.

You need to call your plugin recursively via plugin:// protocol and create a 2-nd level list to display. Fortunately, xbmcswift simplifies this task via URL routing mechanism, which hides the complexity of managing those recursive calls. Please read "URL Routing" section of xbmcswift documentation for more info.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC window1