Technical discussions | Discussions techniques
brianw, Sunday 29 April 2012 à 19:46
|
|
Subscription date : 25 April 2012
Messages : 270
|
I can't figure out how to use the right click add menu items like in the example python. I keep getting the error AddMenuItems is not found. Is there something that needs to be imported for python? I did the CDApplet but it was still not found. Is it just available for compiled versions since I can find it in the source code but nothing related to python?
Never mind I figured it out. Thanks |
Subscription date : 30 November 2007
Messages : 17118
|
I'm pretty sure the Python interface is available in our packages and also in the Ubuntu and Debian's packages.
to be sure, you can just try one of the third-party applets, if it works, then the system is ok.
the base class is CDApplet, you will derive your applet from it. so you have to import CDApplet: from CDApplet import CDApplet
the file CDApplet.py should be found in the python packages (you can try a locate CDApplet.py ) |
brianw, Friday 04 May 2012 à 00:59
|
|
Subscription date : 25 April 2012
Messages : 270
|
Yes, thank you. I am not exactly sure what the issue was but obviously it was something on my part. I reverted back to my original and tried it again and it worked so I must have had a typo or something. Thanks again. |
Technical discussions | Discussions techniques
|