[Ubuntu-ma] (sans objet)

H. Mohammed Amine h0uss4m at gmail.com
Lun 9 Aou 14:27:46 BST 2010


great ! and what about using the threads ?

On Mon, Aug 9, 2010 at 1:24 PM, Nordin <bouchtaoui at gmail.com> wrote:

> 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
> >>
> >>
> >
> >
> >
>
>
> --
> Ubuntu-ma mailing list
> Ubuntu-ma at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
>



-- 
*H Mohammed Amine*

Ce Qui Ne Nous Tue Pas Nous Rends Plus Fort !
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: https://lists.ubuntu.com/archives/ubuntu-ma/attachments/20100809/c33814ca/attachment-0001.htm 


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