[pygtk] Drawing point,rectangle etc over png using Cairo

A.T.Hofkamp a.t.hofkamp at tue.nl
Tue Dec 1 18:29:28 WST 2009


[next time, plz use a reply-all to also send the reply to the list]

nipun batra wrote:
> Actually what i wish to do is that on every timer cycle to draw newer points over the
image.However till now i have been able to draw new points but the older points get erased..How do i
keep the older points as well.

Keep them in a list, and draw all of them each time you do a refresh.

I don't know how you manage to draw 1 point only, it sounds like you do that directly, instead of 
the usual marking an area as 'dirty' with invalidate_rect(), and redrawing via the expose event 
callback.



More information about the pygtk mailing list