Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Trying Python example
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)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Trying Python example
Guest 3 fabounet [Read]
07 June 2013 à 17:17

Guest, Friday 07 June 2013 à 16:14

Hi!

How to test the Python example provided in documentation?

I run it in two different computers, but the result is:

File "example.py", line 38, in <module>
from CDApplet import CDApplet
File "/usr/lib/python2.7/dist-packages/CDApplet.py", line 52, in <module>
translations = gettext.translation(GETTEXT_NAME, LOCALE_DIR)
File "/usr/lib/python2.7/gettext.py", line 484, in translation
raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'cairo-dock-plugins-extra'

Thanks!

fabounet, Friday 07 June 2013 à 16:46


Subscription date : 30 November 2007
Messages : 17118
You have to put your applet in ~/.config/cairo-dock/third-party :

this is from the demo_python applet located in the sources in cairo-dock-plug-ins/Dbus/demos/demo_python/demo_python :
# The name of this applet is "demo_python"; it is placed in a folder named "demo_python", with a file named "auto-load.conf" which describes it.
# Copy this folder into ~/.config/cairo-dock/third-party to let the dock register it automatically.
# In the folder we have :
# - "demo_python" : the executable script, without extension
# - "demo_python.conf" : the default config file
# - "auto-load.conf" : the file describing our applet
# - "icon" : the default icon of the applet (optionnal)
# - "preview" : a preview of this applet (optionnal)


Edit: I've updated the wiki, it should be more clear now

Guest, Friday 07 June 2013 à 16:52

Okay, I discover it after posting. Sorry!
To test it I had to add to the dock panel, isn't it?

For .conf there's a tutorial?

Thank you!

fabounet, Friday 07 June 2013 à 17:17


Subscription date : 30 November 2007
Messages : 17118
more details here : http://www.glx-dock.org/ww_page.php?p=Documentation&lang=en#30-List%20and%20Syntax%20of%20Widget%20Descriptors

you can use any config file of applets located in ~/.config/cairo-dock/current_theme/plug-ins as a starting point

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Trying Python example
Guest 3 fabounet [Read]
07 June 2013 à 17:17


Glx-Dock / Cairo-Dock List of forums Applets | Applets Trying Python example 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.