[TKinter] get a canvas items's id...
Fredrik Lundh
fredrik at pythonware.com
Thu May 15 15:52:37 EDT 2003
"polux" <polux2001 at wanadoo.fr> wrote:
> ...after having clicked on it ! is it possible ?
>
> I know i've clicked on an item with a certain tag, but the only way I've
> foud to get its id is to use find_closest....
inside the event handler,
ids = canvas.find_withtag(CURRENT)
should work (this returns a tuple containing the identities of
all items with that tag).
</F>
More information about the Python-list
mailing list