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, <yah...@uchicago.edu> wrote: > 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://mail.python.org/mailman/listinfo/tkinter-discuss >
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss