RYX
August 20th, 2007, 02:10 PM
Hi everyone!
Here are some infos/tips for people who want to write their own screenlets. I only sum up a few points here now, I'll add some more details later.
Writing own screenlets:
- check the sources of the default screenlets to see how things work
- please read and obey the coding rules in the README (as far as possible, I know keeping 80 chars is sometimes a pain)
- generate API-documentation using "make docs" or "make epydoc" (install python-epydoc first) ,the api is also stored here https://code.launchpad.net/screenlets/trunk/
- you may want to install devhelp and the devhelp-documentation for pygtk, it is a very good reference
- please use SVG-images wherever possible to ensure scalability
- add an icon.svg to your screenlet (to make it look good in manager)
- only write as many screenlets as you can maintain and care for
- think about contributing enhancements to the framework instead of reproducing big amounts of code within your screenlet
Packaging a screenlet:
- use the screenlets-packager tool to package your screenlet for release (e.g.):screenlets-packager ~/.screenlets/Weather
Finding a host for your package
One suggestion ,post your screenlet on www.gnome-look.org under the screenlet section , gnome-look provides you to upload your content there , so it will remain in their servers forever , and your screenlet will be safe and backed up, then you can post it on www.screenlets.org and provide the download link from gnome-look
FAQ - Now that the screenlets website is complete, you can find all screenlets-related information and downloads on http://screenlets.org.
Here are some infos/tips for people who want to write their own screenlets. I only sum up a few points here now, I'll add some more details later.
Writing own screenlets:
- check the sources of the default screenlets to see how things work
- please read and obey the coding rules in the README (as far as possible, I know keeping 80 chars is sometimes a pain)
- generate API-documentation using "make docs" or "make epydoc" (install python-epydoc first) ,the api is also stored here https://code.launchpad.net/screenlets/trunk/
- you may want to install devhelp and the devhelp-documentation for pygtk, it is a very good reference
- please use SVG-images wherever possible to ensure scalability
- add an icon.svg to your screenlet (to make it look good in manager)
- only write as many screenlets as you can maintain and care for
- think about contributing enhancements to the framework instead of reproducing big amounts of code within your screenlet
Packaging a screenlet:
- use the screenlets-packager tool to package your screenlet for release (e.g.):screenlets-packager ~/.screenlets/Weather
Finding a host for your package
One suggestion ,post your screenlet on www.gnome-look.org under the screenlet section , gnome-look provides you to upload your content there , so it will remain in their servers forever , and your screenlet will be safe and backed up, then you can post it on www.screenlets.org and provide the download link from gnome-look
FAQ - Now that the screenlets website is complete, you can find all screenlets-related information and downloads on http://screenlets.org.