[pygtk] Drawing in Drawing Area

James Henstridge james@daa.com.au
Sat, 19 Oct 2002 18:33:44 +0800


LDC - Pablo Endres Lozada wrote:

>	I've tryed to draw in a Drawing Area but the only way
>	that it works is suscribing the paint method to
>	the expose-event.
>
>	Is there anothere way to do this??
>
>	Can I paint at any time or must it be via signals?
>  
>
It is best to only draw in response to an expose event.  If you want to 
redraw your widget, you should call the queue_draw() or 
queue_draw_area() methods, which will queue an exposure for you.

James.

-- 
Email: james@daa.com.au              | Linux.conf.au   http://linux.conf.au/
WWW:   http://www.daa.com.au/~james/ | Jan 22-25   Perth, Western Australia.