Summary
In this chapter, we have learned all about Tkinter's indexing system. We know how to structure an index, combining the line number and character number with a full stop character to create an index such as 3.15.
We then covered how this system is applied to provide greater functionality, including tags and searches.
Tags are Tkinter's way of adjusting the styling options of a certain range of text, marked by beginning and end indexes. We have seen a lot of different styling options which we can change using tags, including the text color, which allows us to achieve syntax highlighting. We know how to configure and remove tags as we need them.
Searching a Text widget using a loop is well-practiced. We know how to use Tkinter's special ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access