Adding context menu to listitems in an addon?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
quakes Offline
Junior Member
Posts: 33
Joined: Nov 2010
Reputation: 0
Post: #11
fekker Wrote:Note: it will fail if the .py file does not exist

Does this mean that the context menu does not show up if the .py file does not exist (which is what happens for me), or just that it fails to run when you click the item in the context menu?

I am beginning to think that adding context menu items only works for plugins and not scripts. I would be delighted for someone to prove me wrong, however. If someone can manage to modify the example that I posted earlier so that it works, I would be grateful.
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,171
Joined: Nov 2003
Reputation: 81
Post: #12
yes, adding context menu entries only works for plugins. you can't add a general context menu entry pointing to a script.

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.
find quote
quakes Offline
Junior Member
Posts: 33
Joined: Nov 2010
Reputation: 0
Post: #13
spiff Wrote:yes, adding context menu entries only works for plugins. you can't add a general context menu entry pointing to a script.

Is there a particular reason for this? I assume I will have to create my own context menu implementation then.
find quote
erolosty Offline
Junior Member
Posts: 24
Joined: Nov 2010
Reputation: 0
Post: #14
(2010-12-08 15:46)spiff Wrote:  yes, adding context menu entries only works for plugins. you can't add a general context menu entry pointing to a script.


Hi Spiff,

I'd like to be able to be able to add to this context menu from python also:

http://forum.xbmc.org/showthread.php?tid=136804

and from a site search I see others would also. Do you know what would be the best way to add this?

Thanks,
Losty
find quote
Post Reply