[gcompris-devel] still no sound in python
Bruno Coudoin
bruno.coudoin at free.fr
Fri Dec 12 13:17:03 UTC 2003
Ahhh yess, I always miss that. You must add this in the header of your
file:
import gcompris.sound
Then in your code, this works:
gcompris.sound.play_ogg("train")
Well, your doc is excellent Olivier. I am stupid not not have look at it
fist. It would have save me some time.
I will spend some time to update it. I removed or added some funtions in
the mean time. How do you recreate it from docbook ? Do you edit it
manually or there is finally some user friendly tools ?
Bruno.
Le ven 12/12/2003 à 18:20, Olivier Samyn a écrit :
> >hi,
> >
> >I still haven't found the name of the function to play sound.
> >If someone knows a way to do it, I am volunteers to write a doc listing all
> >the PYTHON API for gcompris. Yes, it's when you need it that you do it ;-)
> >
>
> Now you speak about some docs, I remember me about something I made sometimes ago...
>
> Just take a look at:
> http://cvs.gnome.org/lxr/source/gcompris/docs/C/python.html
>
> and you will find for the sound package:
> gcompris.sound.play_ogg(list) where The list argument is a python list containing strings
>
> ;)
>
> Olivier Samyn.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> gcompris-devel mailing list
> gcompris-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gcompris-devel
>
More information about the Gcompris-devel
mailing list