Trigger pygtk drawingarea redraw

Jeremy Moles jeremy at
Thu Jul 28 15:15:51 CEST 2005

Call the gtk.Widget method queue_draw(); if you derive from DrawingArea
then simply:


Of if the DrawingArea is some kind of "has-a" member:


On Thu, 2005-07-28 at 02:52 -0700, ch424 wrote:
> Hi,
> Does anybody know the fastest way to trigger a DrawingArea redaw in
> pygtk? At the moment, I'm using a bit of a hack:
> def redraw(self):
>     self.area.hide()
> Is there a better way to trigger a redraw? This causes flickering when
> the window gets bigger than 400x400 pixels, which is a nuisance...
> there must be a better way of clearing the area and letting it redraw
> itself?
> Many thanks for any help,
> Alex

More information about the Python-list mailing list