[gcompris-devel] Python programming in gcompris

Bruno Coudoin bruno.coudoin at free.fr
Thu Oct 16 09:35:20 UTC 2003


Le jeu 16/10/2003 à 14:58, Olivier Samyn a écrit :
> >I made several (minor) fixes in the bindings. Not so hard to maintain.
> >
> >As of today, I have a strange bug. When I hit a key in my board, (like
> >space while in watercycle), it stops python with an error on the next
> >objet move I do. It says argument must be an int. Just checked in
> >pythontest and it's the same:
> >width_units=5.0
> >TypeError: could not convert value for property `width_units'
> >
> >Any idea where I should look at ?
> >
> If I remember me good, width_units is a parameter of some gnome_canvas drawing function no ?
> 
> In this case, the python binding only use the pygtk/gnome-python one. So there is probably something there.
> 
> Do you tried with "width_units=5" ? 
> 
> Maybe you will have to send me some parts of the code around this line so that I can check what's wrong... 
> 
unfortunatly, it's not related to the line. The code works fine until I
hit a key and the error is to the next code running after the key hit.

I will also try to get the cvs and take a look at it...
> 
Thanks in advance.

Bruno.






More information about the Gcompris-devel mailing list