O'Reilly logo

Tkinter GUI Programming by Example by David Love

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required