Creating a SuperKaramba desklet.  |
Rating

Themes in SuperKaramba consist of two parts:  
1. A .theme file that defines the shape and size of the theme, and possibly many other things.  
 

Basic Instructions for creating the .theme file.

 
2. A .py file that adds interactivity to the theme. Basically, whenever
an event happens, such as the user clicking the mouse on your theme, a
function is called in your python script to let you react to the event.
 
Basic Instructions for writing the .py file.

Quick Links:

  • Callbacks that must be defined in your python script
  • API, a list of functions you can call from your python script
  • Using DCOP in your python script

Here is a very basic example script. It does not do anything. But it defines the required callbacks so you can use this as a starting pointfor editing. You will need to rename it mytheme.py where mytheme is the
name of your matching .theme file. For example, if you created
cool.theme, you would rename this to cool.py and then load cool.theme
in SuperKaramba.
Download template.py
 
The best examples to learn from are other peoples themes! Download some to learn how

other people created their .py files.

submitted by land0 on April 28, 2006
»printer-friendly version | login or register to post comments

kde-artists.org© 2004-2006 Sponsored by Revelinux©
Powered by Drupal©