2012-10-11, 12:16
I am trying to add listitems in video window's panel.
I am running my script on load of MyVideoNav.xml,
The item is added and is visible on screen but when I click on it the command associated with the previous item on the same location gets executed and Home is not activated.
I tried refreshing the skin but no help.
I want that when an item is clicked(which is a movie) the movie should start playing, this time just Home should be opened.
Thanks please help.
I am running my script on load of MyVideoNav.xml,
PHP Code:
myWindow = xbmcgui.Window(10025) # id of MyVideoNav.xml which is displaying all Movies currently
myListControl= myWindow.getControl(53) # actually panel
myListControl.reset() # erasing all items
listitem = xbmcgui.ListItem('Casino Royale1', '[PG-13]', 'blank-poster.tbn', 'poster.tbn') # .tbn is just for example not real right now
listitem.setPath('ActivateWindow(Home)'); # This NEVER worked, and is my question
myListControl.addItem(listitem);
I tried refreshing the skin but no help.
I want that when an item is clicked(which is a movie) the movie should start playing, this time just Home should be opened.
Thanks please help.