That the problem with open source projects, people are really busy since they are doing that on their spare time and sometimes documentation is not up to date.
My advice to you is to look a example of code. You have plenty of good one in google code.
Zodler Wrote:So it can be done? Then great. So please I ask again my first post. Please help how to do it.
You cannot do it directly but it is possible, except you have to implement it yourselft.
You can create you own context menu, the nice thing with a script is you can do almost everything, but of course it is more more than with a plugin.
A simple way of doing it would be to create a windows with a simple list on it and react on the click event on the item of the list.
You can do either with WindowXML (the nicest way), you can find a class and an XML in the installer Passion XBMC:
- Here is the python code:
http://code.google.com/p/passion-xbmc/so...extMenu.py
- The XML:
http://passion-xbmc.googlecode.com/svn/t...xtMenu.xml
- and an example how to use it (search for _show_context_menu):
http://passion-xbmc.googlecode.com/svn/t...agerGui.py
That's a way, but it could be a little bit complicated for what you need, another way is to do with the old Window API (without XML), here is an example (look at DropDownMenu):
http://passion-xbmc.googlecode.com/svn/o...default.py
It will look like that:
http://passion-xbmc.org/gallery/3/23_10_...7_17_0.jpg
Forgive the code, it was one of my first script (but it was fun!
). It is not exactly a context menu but a Drop Down Menu, but the concept is very similar (we go left to right instead of up to down).