I'm really not friend with Python threads (I find Gobject threads easier to
use) but, indeed, I think that callbacks and timeout will save me a lot of
headache !

Thanks for the tip.

Lionel

On Fri, Mar 6, 2009 at 2:58 PM, Julien Pauty <[email protected]> wrote:

> Hello,
>
> Use python threads. Don't forget to call clutter_init_threads. Use
> clutter.threads_enter and threads_leave around clutter calls, in your
> threads.
>
> Maybe you can use a gobject timeout to do what you want.
> http://www.pygtk.org/pygtk2reference/gobject-functions.html#function-gobject--timeout-add.
>  You will avoid threads then.  Some drivers are not friends with threads.
>
> Cheers,
>
> Julien
>
>
> 2009/3/6 Lionel Dricot <[email protected]>
>
> Hello,
>>
>> I've a little application using libchamplain and clutter and I want to
>> modify dynamically some properties of actors (like the size or the
>> position).
>>
>> I want to use threads in this application. What's the easiest solution for
>> that in Clutter ? Pierlux told me about threads_add_idle_full but I'm not
>> sure it is available in the python bindings and I don't find any
>> documentation about it.
>>
>> How do you use threads in pyclutter apps ?
>>
>> Thank in advance,
>>
>> Lionel
>>
>
>

Reply via email to