Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想问如何使用 我使用的 pyGTK 擦除我绘制的线条:cairo 库
cr = widget.window.cairo_create() cr.move_to(x, y) cr.line_to(x1, y1) cr.stroke()
我想在屏幕上绘制后删除这条线
您不能删除该行;在下一个暴露事件期间它无论如何都会被删除,所以你只需要等到下一个暴露事件然后不要绘制它。