[Tkinter-discuss] how to get all pixels enclosed by a canvas object

2011-06-20 Thread yahuip
Hi there, I have been struggling to find a way to retrieve all pixel coordinates that are enclosed by an object drawn on a canvas widget. Anyone knows how I can do it? Thanks, Yahui ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://ma

Re: [Tkinter-discuss] how to get all pixels enclosed by a canvas object

2011-06-20 Thread Lion Kimbro
I'm not sure what you mean, but perhaps you are looking for: canvas.find_enclosed(x1, y1, x2, y2) => [objID, objID, ...] completely enclosed canvas.find_overlapping(x1, y1, x2, y2) => [objID, objID, ...] sharing at least 1 point ..? On Mon, Jun 20, 2011 at 7:59 PM, wrote: > Hi ther