wxPython question

joshua solomon jslm at earthlink.net
Mon Nov 18 01:08:20 EST 2002


"Chris Liechti" <cliechti at gmx.net> wrote in message
news:Xns92C9DA5E62FACcliechtigmxnet at 62.2.16.82...
> "joshua solomon" <jslm at earthlink.net> wrote in
> news:lNRB9.2743$fY3.294687 at newsread2.prod.itd.earthlink.net:
>
> > Basically I have a loop within the OnPaint handler which I am using
> > for bouncing a ball around on a screen.
>
> don't do the loop for the animation in the event handler. do it in a
> separate thread nad call Refresh() or us a wxClientDC to draw in that loop
> directly.
>
> GUI rule 1: event handlers have to be short (in time)
>
> so no animations and workers. use Threading instead.
>

Thanks for the info Chris. It worked.





More information about the Python-list mailing list