Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Python right click add items to the menu.
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] Python right click add items to the menu.
brianw English 2 brianw [Read]
04 May 2012 à 00:59

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

fabounet, Thursday 03 May 2012 à 16:44


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

Subjects Author Language Messages Last message
[Locked] Python right click add items to the menu.
brianw English 2 brianw [Read]
04 May 2012 à 00:59


Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Python right click add items to the menu. Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.