I have trouble in programming a module like eraser in MS Paint. I have just learned and find it difficult in getting mouse position and make the cursor become a square or circle when user click the Button Eraser.

Can I open an image in a widget and erase it? or I need to use something else to do this? Thanks a lot!