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

nipun batra nipunreddevil at gmail.com
Tue Dec 1 18:38:37 WST 2009

This is my expose event function

def expose(self, widget, event):

cr = widget.window.cairo_create()
cr.set_source_surface(self.surface, self.border, self.border)
cr.set_source_rgb(0.5, 0, 0)


Here i am initially drawing the background image and over it i am drawing
points.These come from two variables(global) which are updated every clock
cycle.Now maintaining a list and plotting it would be tedious and not at all
processor friendly.Could you elaborate a bit on the other technique.Using
"dirty" regions.
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20091201/4e567b6f/attachment.htm 

More information about the pygtk mailing list