PyQt - clear widget for redraw

Diez B. Roggisch deetsNOSPAM at web.de
Sat Jul 31 07:58:11 EDT 2004


Peter wrote:

> 
> I want to draw some lines on a widget.
> This works ok, but when I want to redraw, the old lines are still there.
> 
> How do I clear or refresh the widget, so I can draw a new set of lines?

Call erase on your widget. Or redraw a rectangle yourself.


-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list