views:

16

answers:

2

hi,
I want to ask how can I erase a line witch I've drawn by using the pyGTK
I used:cairo library

cr = widget.window.cairo_create()
cr.move_to(x, y)
cr.line_to(x1, y1)
cr.stroke()

I want to delete this line after drawing it on screen

A: 

where are you people ?

Programmer
A: 

You can't delete the line; it's erased anyway during the next expose event, so you just have to wait until the next expose event and then not draw it.

ptomato