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

Fredrik Lundh fredrik@pythonware.com
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
fredrik@pythonware.com
http://www.pythonware.com


_______________
IMAGE-SIG - SIG on Image Processing with Python

send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
_______________