Currently, I have a function that detects and reports the location of mouse clicks on a canvas. What I need it to do is report the first click then draw a rectangle to the mouse until it detects a second click. Below is the code for the canvas item :
Canvas = Canvas(FrameFractal,height = 300,width = 496)
Canvas.pack()
StartImage = ImageTk.PhotoImage(master=FrameFractal , file = "Program files\Show.png")
ImageContainer = Canvas.create_image(250,150, image=StartImage)
Canvas.tag_bind(ImageContainer, '<Button-1>',Zoom)
def Zoom(event):
print(f"Canvas clicked at {event.x, event.y}")
If it helps, the Canvas is the grey item behind the Fractal Image (StartImage): Main Program
Any help would be appreciated !!