Trigger pygtk drawingarea redraw
Jeremy Moles
jeremy at emperorlinux.com
Thu Jul 28 09:15:51 EDT 2005
Call the gtk.Widget method queue_draw(); if you derive from DrawingArea
then simply:
self.queue_draw()
Of if the DrawingArea is some kind of "has-a" member:
self.DrawableThing.queue_draw()
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()
> 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