Excuse me... I'm a newbie... can you make an example, please?
Thank you!
Luigi
A.T.Hofkamp wrote:
Hello,
Luigi Paioro wrote:
Now I have another question that I can't solve.
While I can draw a line on a gtk.gdk.Drawable object, it looks that I
cannot delete it. For example I can draw a line using:
area = gtk.DrawingArea()
area.window.draw_line(gc, x1, y1, x2, y2)
but I cannot delete such line... a line isn't identified by an object
or an ID and it doesn't exist a proper method to delete it!
> Is there a trick to solve this trouble?
Mark the area where you have drawn the line as 'dirty', gtk will
generate an redraw-event to redraw the area, then don't draw the line
again.
Albert
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/