Re: Trigger pygtk drawingarea redraw

2005-07-28 Thread ch424
Ahh.. fantastic! Flickers be gone! Yaarrrg! It was "self.area.queue_draw()" in case anyone wants to know. :) Thanks so much! Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Trigger pygtk drawingarea redraw

2005-07-28 Thread Jeremy Moles
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

Trigger pygtk drawingarea redraw

2005-07-28 Thread ch424
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,