[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.alloc.height)
self.window.invalidate_rect(rect, True)
HTH
\d
--
Fonty Python and other dev news at:
http://otherwiseingle.blogspot.com/
More information about the pygtk
mailing list