Re: finding out tags in a specified area on the canvas widget identified by x,y
- From: Aric Bills <aric.bills@xxxxxxxxx>
- Date: Wed, 27 Aug 2008 22:44:35 -0700 (PDT)
On 27 août, 21:14, Ravikanth <rkanth....@xxxxxxxxx> wrote:
Hi all,
I am writing an application in Tk using Canvas widget.
I have created some different polygons in it and tagged them using '-
tags' command.
Is there a way to find out what tags are there in a canvas at a
specified location in the canvas say x,y.
Thanks in advance!
Ravikanth.
You can get the IDs for each polygon using [$canvas find overlapping
$x $y $x $y]. Once you have the IDs for each polygon, you can get
their tags using [$canvas itemcget $id -tags].
.
- References:
- Prev by Date: finding out tags in a specified area on the canvas widget identified by x,y
- Next by Date: Re: question about reset counter/data
- Previous by thread: finding out tags in a specified area on the canvas widget identified by x,y
- Index(es):
Relevant Pages
|