[gcompris-devel] APPLAUSES

Bruno Coudoin bruno.coudoin at free.fr
Mon Dec 8 01:19:01 UTC 2003


Le dim 07/12/2003 à 14:02, José JORGE a écrit :
> Thank you Bruno to finding time to make GCompris gnome-free... maybe we'll get 
> it to run on low-end machines?
> 
> You often tell me when I suggest something, go on and do it, but really, I'm 
> not good at programming.... maybe in Python I could do something. Is there a 
> doc giving the python API somewhere?
> 

Here is some pointers in french sorry. I'll put this in a FAQ soon.
Basically, now there is 2 complete boards in python. It's cover all you
can do with the canvas and provides good code examples.

J'ai prévu un tutorial l'année prochaine mais en attendant, regarde dans
gcompris/src/boards/python il y a des exemples.
J'utilise toujours le gnome canvas dont tu trouvera un tutoriel
(justement fait par Hilaire) sur:
http://www.linuxfocus.org/Francais/July2000/article160.shtml
A la base, c'est le même que celui the TCL/TK donc si tu l'utilisais, tu
t'y retrouvera vite.
Le packet gnome-python-canvas inclue un exemple:
/usr/share/doc/gnome-python-canvas-1.99.16/canvas/canvas-example.py

Coté gcompris, il faut regarder:
http://www.ofset.org/gcompris/gcomprisfr.html#SEC14

Pour démarrer, il faut que tu crée un fichier gcompris/boards/ABC.xml.in
en prenant pour example redraw.xml.in (met bien le champs name a ABC
ensuite ajoute le dans gcompris/boards/Makefile.am
pour cree src/boards/python/ABC.py en prenant pythontest.py comme
example. rennome bien partout pythontest par ABC.
sh configure && make && make install et ton activité et la.






More information about the Gcompris-devel mailing list