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

Word beginning and end

The last special strings to mention are wordstart and wordend. If you have an index which is in the middle of a word, you can use these two strings to refer to the beginning and end of it.

For example, if you knew that the y of Python was at 3.2, then 3.2 wordstart and 3.2 wordend would refer to the beginning and end of this word.

Let's build upon our demo application by creating some keyboard shortcuts which will utilize a few of these tools.

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