listitem.setPath never worked
#1
Bug 
I am trying to add listitems in video window's panel.
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 
    
myListControlmyWindow.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); 
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.
Reply
#2
a listitem can't contain some random commands as the path.....
Reply
#3
then how to achieve the job, spiff? any suggestion ?
Reply
#4
As was recommended in the other thread. Use a plugin URL to re-call your plugin, and do the deed in the plugin.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
that means i will have to create a plugin?
Reply
#6
if you are writing a script, what you do will NEVER work.

you have to subclass the control and implement the onClick method.
Reply
#7
(2012-10-18, 14:03)spiff Wrote: if you are writing a script, what you do will NEVER work.

you have to subclass the control and implement the onClick method.

Can you provide an example on how to do this spiff? I can't find one, and i wasn't sure which thread that jmarshall was referring to.

Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
listitem.setPath never worked0