wxpython : wxDc and Refresh() = flash

marco marc.lentz at ctrceal.caisse-epargne.fr
Thu Nov 20 03:26:19 EST 2003


> > Juste a simple question about the DC in wxpython ...
> >
> > I've made a wxWindow class, where i need to paint myself the content.
> > so i've added an evt_paint() to draw in the wxPaintDC ...
> > It works like a charm !! superb
> >
> > To trigg the painter event, in some codes, i use the Refresh() method
> > It works greatly !
>
> Two points
> 1) you would do well to subscribe to the wxPython news group, they
> specifically handle wxPython related issues and you will have a better
> shot at getting the right answer.
>
> http://wxpython.org/maillist.php

sure ... and i've already subscribe to it

> 2) In the demos supplied by wxPython, see the wxScrolledWindow example.
>   They show how to use a double buffering screen that will help prevent
> the flashing screen when it is being redrawn.  Just look for
>
> if BUFFERED:
>
> in the code.  If you don't have access to this, I'll send it to you.
>
> Brian

thanx a lot ...
i've got the demo, and got access to the code ...
(i use it a lot, but never see an example to disabled this flashed
rendering)

i will use it ...
thanx for your answer ...






More information about the Python-list mailing list