[Ubuntu-ma] (sans objet)

Nordin bouchtaoui at gmail.com
Lun 9 Aou 14:24:29 BST 2010


No problem,

This construction is used a lot, because that keeps the user interface 
responsive.
Imagine your animation is repeating forever in a loop, you want to be 
able to stop with a stop button.
But because you're app is caught in a loop, you're unable to press stop, 
this makes your app is not responding and eats a lot of CPU resource.
I don't know if you've seen a windows app freezing, well, that's the 
same result you'll get with your application.

Using a timer your app can respond on a stop button and everything is 
fine ;-)
I hope you understand :)



On 9-8-2010 14:48, H. Mohammed Amine wrote:
> nice idea ! thnx :) i'll try this
>
> On Mon, Aug 9, 2010 at 12:16 PM, Nordin<bouchtaoui at gmail.com>  wrote:
>
>    
>> On 9-8-2010 14:05, H. Mohammed Amine wrote:
>>      
>>> No, No Compil Error i'm okeh till now !! i'm looking for how to anime it
>>>        
>> ! i
>>      
>>> think something called timer
>>> thnx :)
>>>
>>>        
>> Yes, a timer would be the most logical way ;-)
>> I think you first try it by every time pushing on a button (manually)
>> and see if your animation does what it should do.
>> When everything goes fine, you can replace your button by a timer, that
>> triggers every 200 ms. In the timer handler you do the calculation and
>> than update your drawings.
>>
>>      
>>> On Fri, Aug 6, 2010 at 3:57 PM, Gmail account<allali.ayoub at gmail.com
>>> wrote:
>>>
>>>
>>>        
>>>> @H Mohammed Amine ,*
>>>> *what is wrong with your code ?
>>>> did you have any compilation error ?
>>>>
>>>>
>>>>
>>>> AYYOUB Allali
>>>> JEE junior developer
>>>> +(212) 644 67 79 24
>>>>
>>>>
>>>> --
>>>> Ubuntu-ma mailing list
>>>> Ubuntu-ma at lists.ubuntu.com
>>>> Modify settings or unsubscribe at:
>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
>>>>
>>>>
>>>>
>>>>          
>>>
>>>        
>>
>> --
>> Ubuntu-ma mailing list
>> Ubuntu-ma at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
>>
>>      
>
>
>    




Plus d'informations sur la liste de diffusion Ubuntu-ma