Canvas - Rectangle. Is there an easy way to detect if you're inside?

T. Panbru panbru at comcast.net
Fri Sep 12 12:14:56 EDT 2003


Type "point in polygon algorithm" into Google and follow the links.

Tim

Marc wrote:
> Yeah, I've had to use the 'tags' parameter fairly heavily to bind
> different groups of canvas objects to different mouse actions. So I'm
> all over that.
> 
> But I think the key thing you said was "has to be filled." Basically
> I'm using the rectangle as a border within which other things are
> placed. The border itself is simply an overlay where I need the
> background to show through. Therefore I can't fill it with anything.
> 
> So if it has to be filled, apparently there is no easier way than the
> way I'm doing now.





More information about the Python-list mailing list