开发者

erase lines after drawing them in PyGTK- Cairo

开发者 https://www.devze.com 2023-01-13 07:46 出处:网络
I want to ask how can I erase a line witch I\'ve drawn by using the pyGTK I used:cairo library 开发者_开发技巧

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

精彩评论

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

关注公众号