James Stroud wrote:
> Thank you Fredrik, this worked beautifully. I had no idea about the "@"
> prefix. Incidentally, I had to change the code to
>
> w.index("@%s,%s" % (e.x, e.y))
>
> Maybe the x,y is a python 2.4 thing.
no, it's a think-before-cutting-and-pasting thing. should have
been "@%d,%
Thank you Fredrik, this worked beautifully. I had no idea about the "@"
prefix. Incidentally, I had to change the code to
w.index("@%s,%s" % (e.x, e.y))
Maybe the x,y is a python 2.4 thing. I'm still stuck in 2.3.
James
On Wednesday 25 May 2005 12:18 am, Fredrik Lundh wrote:
> w.index("@x,y"
James Stroud wrote:
> I would like to get the index of the character closest to the pointer in a
> Text, something like Canvas.find_closest(). I want it to bind to ''.
> Does anybody know how this might be done?
use w.index("@x,y" % (event.x, event.y)) to find the character "under" the
pointer, a
Hello All,
I would like to get the index of the character closest to the pointer in a
Text, something like Canvas.find_closest(). I want it to bind to ''.
Does anybody know how this might be done?
Thank you,
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los A