From: Josef Wolf Date: 2009-09-12T01:40:14+09:00 Subject: Re: How to bind canvas events to tags? On Thu, Sep 10, 2009 at 10:27:54AM -0700, Joel VanderWerf wrote: > Josef Wolf wrote: >> $canv->bind("foobar", '<1>' => sub { > > canvas.itembind(tag, '1', '%x %y') do |x, y| > > In this case, we're binding mouse single click events (I assume that's the > same as perl's '<1>') and we're grabbing the pointer location into block > args x and y. Yeah, that works. Thanks! BTW: do you have a description of the "%x %y" formatting specification?