wxPython - drawing without paint event

glenn.chappell at gmail.com glenn.chappell at gmail.com
Sat Aug 11 21:59:48 EDT 2007


On Aug 11, 3:31 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n... at spamgourmet.com> wrote:
>  glenn.chapp... at gmail.com wrote:
> > On a related topic, it seems like it would be nice to do *all*
> > drawing in
> > response topaintevents. When I get aneventfrom the timer, I
> > would just tell wx that part of the window needs redrawing, and
> > depend on it to give me apainteven when nothing of higher
> > priority needs to be done.
>
> One nice strategy from an example in "wxPython in Action" is the
> following:
>
> * the frame has Draw methods that draw into a BufferedDC, which is
> chained to a bitmap member
>
> * inside thepaintmethod, the bitmap member is drawn to screen

Okay, but how do I tell wx that it needs to send me a paint event?




More information about the Python-list mailing list