1

I am trying to get a context menu to display, where I have a button e.g. to delete (or whatever) the selected item.

jmk
  • 1,778
  • 15
  • 18

2 Answers2

2

On all your ListItems, use addContextMenuItems which takes a list of (label, action) pairs. For action you can use XBMC.RunScript(somescript.py, someid) and implement your delete (or whatever) there.

You can check out XBMC Flicks for an example on how to implement something like this.

gwohpq9
  • 2,143
  • 2
  • 18
  • 18
0

Using the Simpleplugin framework, there is the context_menu parameter for virtual folders.

Same with xbmcswift2.

gordie
  • 1,637
  • 3
  • 21
  • 41