Summary
In this chapter we covered the following points:
We completed coding the editor in twelve iterations. We started by placing all the widgets on the Toplevel window. We then leveraged some built-in features of the Text widget to code some functionality. We learned some very important concepts of indexing and tagging, which you will find yourself using frequently in Tkinter projects.
We also saw how to use the
filedialog
andmessagebox
modules to quickly code some common features in programs.If you are feeling adventurous and want to further explore the Text Editor program, I encourage you to have a look at the source code of Python's built-in editor named IDLE, which is written in Tkinter. The source code of IDLE can be found in your local Python library directory in a folder called
idlelib
. On my Ubuntu, this is located at/usr/lib/python3.4/idlelib
.Congratulations! You completed coding your text editor.