D
D
darthl1ne2020-06-03 22:55:54
Python
darthl1ne, 2020-06-03 22:55:54

How to remove an element in Pycairo?

Hello. I am trying to make a simple drawing program. I can draw a rectangle based on the mouse coordinates, but I don't know how to remove the old elements so that I have the behavior like in the second video. How can I implement the behavior from the second video (Where is the rectangle on the white background) ?
Now like this: https://youtu.be/a7MWjOXk84Y
Correct behavior: https://youtu.be/WFdPb2vixQg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question