Search code examples
pythonwxpythonwxwidgets

Canvas Selection Tool? wxpython


Is there a way to make a canvas selection tool in wxpython?

LEFT BUTTON PRESSED: When the left button is pressed start drawing rectangle and update it until the user releases the left button.

LEFT BUTTON RELEASED: Finish drawing rectangle

It is something similar that you would see in a paint program.

enter image description here

If possible please provide an example. Thanks.


Solution

  • You could try to do it with wx.Overlay