开发者

erase lines after drawing them in PyGTK- Cairo

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜