Trigger pygtk drawingarea redraw

ch424 alexander.chadwick at gmail.com
Thu Jul 28 11:52:22 CEST 2005


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()
    self.area.show()

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