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

A.T.Hofkamp a.t.hofkamp at tue.nl
Tue Dec 1 23:41:41 WST 2009

nipun batra wrote:
> Ok..My code will be redrawing the background image apparently which is unneccesary.Still not

Why do you think it is not needed?

A DrawingArea does not keep track of its contents, every expose happens from the ground up. That's 
why you lost your previous plotted points.

In that way, handling eg another window on top of yours, minimizing and opening again of the app, or 
moving the app to another desktop will all work as expected.


More information about the pygtk mailing list