[gcompris-devel] help! canvas refresh

José JORGE jjorge at free.fr
Tue Dec 23 23:16:02 UTC 2003


This shows something, I'll explore how to play sound exactly when cursor has 
moved.

Thanks Bruno

José

Em Terça, 23 de Dezembro de 2003 23:31, o Bruno Coudoin escreveu:
> def show_bang(self, a):
>     print "show_bang a="+str(a)
>     if a==1:
>       self.bang_item.set(x=150,y=50)
>     elif a==2:
>       self.bang_item.set(x=550,y=50)
>     elif a==3:
>       self.bang_item.set(x=150,y=250)
>     else :
>       self.bang_item.set(x=550,y=250)
>    
>            
>   def repeat(self):
>     print("Gcompris_melody repeat.")
>     #self.bang_item.show()
>     timer = 0
>     for a in self.solution[:]:
>       gcompris.sound.play_ogg("melody/son"+str(self.a))
>       self.show_bang_timer = gtk.timeout_add(timer, self.show_bang, a)
>       timer = timer + 1000

-- 
JABBER ID : jose.jorge at 12jabber.com




More information about the Gcompris-devel mailing list