tkinter entry index

dsavitsk dsavitsk at e-coli.net
Mon Mar 12 18:26:15 EST 2001


thanks.

"Fredrik Lundh" <fredrik at pythonware.com> wrote in message
news:SJcr6.17936$Qb7.3120517 at newsb.telia.net...
> "dsavitsk" wrote:
> > how can i get the position of the cursor in an entry widget? .index and
> > .icursor don't seem to it. That is, if "foo" is in an entry, and the
cursor
> > is between the "o" and the other "o", I could get a return of 2.
>
>     position = w.index(INSERT)
>
> Cheers /F
>
> <!-- pythonworks 1.2 coming soon:
> http://www.pythonware.com/products/works/index.htm
> -->
>
>





More information about the Python-list mailing list