Thanks
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.paint()
cr.set_source_rgb(0.5, 0, 0)

#cr.paint()
cr.rectangle(int(var1)*10,int(var2)*10,5,5)
cr.fill()

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
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to