SV: [IMAGE-SIG] Tk-events in PIL ?

Fredrik Lundh
Fri, 31 Oct 1997 18:28:51 +0100

> How can I handle tk-events in PIL ?

As you'd handle them in Tkinter...
> I would like to have an image "in the background" and
> get i.e. mouse coordinates if the mouse button
> is clicked onto the image. 

Simply display the image in a label (or perhaps a
canvas), and bind an event handler to that widget.
See the sample files provided with PIL and Guido's
Tkinter demos provided with the 1.4 source
distribution (Demo/tkinter/guido).

Cheers /F

IMAGE-SIG - SIG on Image Processing with Python

send messages to:
administrivia to: