Never mind. I found the problem. Basically the args order is wrong. The API
in C has a different and I was looking at the C docs (for some reason
pyclutter docs never compile properly for me).


On Tue, Aug 5, 2008 at 8:40 PM, Chandan Pitta <[EMAIL PROTECTED]>wrote:

> I am trying to create a rotate behaviour using clutter.BehaviourRotate()
> with the following code:
>     timeline = clutter.Timeline(10, 30)
>     alpha = clutter.Alpha(timeline, clutter.ramp_inc_func)
>     behaviour = clutter.BehaviourRotate(alpha, clutter.Y_AXIS,
> clutter.ROTATE_CCW, 0, 45)
>
> But when I run the code I am getting this error:
> could not convert parameter 'axis' of type 'ClutterRotateAxis'
>
> Seems like clutter.Y_AXIS isn't the correct object to pass? I even tried
> using clutter.RotateAxis(clutter.Y_AXIS) which also gave the same error.
> However if I try something similar using clutter.effect_rotate(),
> clutter.Y_AXIS works fine. As in this example code:
> clutter.effect_rotate(effect, widget, clutter.Y_AXIS, 45, (0, 0, 0),
> clutter.ROTATE_CCW)
>
> How should I use BehaviourRotate()?
>
> Thanks
> Chandan
>
>

Reply via email to