8,103
edits
Line 151: | Line 151: | ||
'''Warning''': A bunch of Sugar API relies on Glib and a window which you won't have control over (I think). | '''Warning''': A bunch of Sugar API relies on Glib and a window which you won't have control over (I think). | ||
* '''Write your component'''. Just like a C++ component, write the IDL file and generate the xpt. Example python component using sugar: | * '''Write your component'''. Just like a C++ component, write the IDL[http://kiwix.svn.sourceforge.net/viewvc/kiwix/moulinkiwix/src/components/sugarBridge/ISugarBridge.idl] file and generate the xpt. Example python component [http://kiwix.svn.sourceforge.net/viewvc/kiwix/moulinkiwix/src/components/sugarBridge/sugar_bridge.py] using sugar: | ||
<pre>#!/usr/bin/env python | <pre>#!/usr/bin/env python | ||
# encoding=utf-8 | # encoding=utf-8 |
edits