Suresh Subedi
Suresh Subedi

Reputation: 710

Is it possible to get numeric index (position) of marks in tkinter text?

I am trying to find the position of certain mark within tkinter text. How do I do that?

Upvotes: 1

Views: 540

Answers (1)

falsetru
falsetru

Reputation: 369094

You can use Text.index method to get the "line.column" index corresponding to the given index.

pos = text.index(INSERT)

Upvotes: 2

Related Questions