PyQt - clear widget for redraw

Phil Thompson phil at riverbankcomputing.co.uk
Wed Aug 4 00:15:26 CEST 2004


On Tuesday 03 August 2004 8:19 pm, Peter wrote:
> Diez B. Roggisch wrote:
> > Maybe it helps to put your sleep not in the drawing code, but between the
> > arrival of different data sets to draw, thus limiting the redraws to an
> > amount of lets say 10/s.
>
> Yes - tried that, but gives incomplete draw / flicker.

There are lots of standard graphics techniques for eliminating flicker when 
drawing that you can exploit with PyQt. Double buffering for example - draw 
to a QPixmap and then blit it to the QWidget.

Phil



More information about the Python-list mailing list