[pygtk] Simple question on forcing a DrawingArea to be redrawn

Donn donn.ingle at gmail.com
Fri Jan 11 03:26:32 WST 2008

I'm not sure this will help, but I use this code in a function I call when I 
want to force a redraw. It makes the expose event happen.

self.alloc = self.get_allocation()
rect = gtk.gdk.Rectangle(self.alloc.x, self.alloc.y, self.alloc.width, 
self.window.invalidate_rect(rect, True)


Fonty Python and other dev news at:

More information about the pygtk mailing list