set a call back for ListItem?
#1
I have been reviewing the ListItem class documentation ( http://mirrors.xbmc.org/docs/python-docs...l#ListItem )

What I would like to know is if there is a way to set a call back function so that a python function gets called when the ListItem is selected?

Basically, I want to detect when a list item has been selected and then run a python function from my add on before the stream starts playing back.
Reply
#2
Just make the URL for the ListItem point back to your add-on. Then run your code and once you're done, use setResolvedURL: http://forum.xbmc.org/showthread.php?tid...esolvedURL
Reply
#3
Pline,

Thanks. That did what I needed.
Reply

Logout Mark Read Team Forum Stats Members Help
set a call back for ListItem?0