Re: [clutter] PyClutter "external" behaviours

From: Gideon de Kok <gideon@nyarna.com>
Date: Sat Mar 10 2007 - 18:52:10 EST

> you are masking the timeline variable: the timeline you are binding to
> the clutter.Alpha object is not started, while you are starting the
> second one.
>
> you can use the same clutter.Timeline object:
>
> timeline = clutter.Timeline(40, 50)
> timeline.connect('new-frame', self.printBlaat)
>
> alpha = clutter.Alpha(timeline, clutter.ramp_inc_func)
> o_behaviour = BehaviourRoll(alpha)
> for label in menu:
> o_behaviour.apply(label)
>
> timeline.start()
>
> this should work.

Thanks for pointing me out that I am a idiot! :)
After many times of reading through the code what I was doing wrong (and
I couldn't find it), I never noticed the duplicate timeline... Sorry for
stirring up the hive! ;)
 
-- Gideon
 * http://gideon.nyarna.com

-- 
To unsubscribe send a mail to clutter+unsubscribe@o-hand.com
Received on Sun, 11 Mar 2007 00:52:10 +0100

This archive was generated by hypermail 2.1.8 : Mon Apr 30 2007 - 08:01:15 EDT