On Wed, 2007-11-07 at 22:14 +0100, Johan Mårtenson wrote:

>         
>         And indeed you're right. Just making the variables global
>         fixes it.  
> 
> Actually, I still don't get the behavior I'm expecting. In the
> attached program, I want the HBox menu to slide to the middle and stay
> there but once it gets there it instead slides back again. What am I
> getting wrong? 

the alpha function you're using is a sine wave, so you'll get the
"return" when the wave decreases. you should probably use sine_inc_func
instead.

> Also, is there a nicer way of comparing keys than using b.keyval ==
> 65362 for arrow up and 113 for q?

sure: clutter.keysyms.q for 'q' and clutter.keysyms.uparrow for 'arrow
up'.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to