Introduction
In the Address Book application, we will bring together everything covered within the previous chapters. This will include not only the Tcl commands and Tk widgets, but also the creation of global variables and calling Tcl procedures. We will leverage the flexibility of the dict
command combined with the list
command to read and write our data to disk in a manner similar to a database.
I have also added comments to clarify understanding of various sections. Although these comments are not necessary for the program to operate, you should add them to aid you in the event of any issues you might encounter.
Please note that I have intentionally used step-by-step methodology to complete several items, as opposed to a control construct methodology, to more clearly illustrate sections. For example, rather that storing the widgets in a list and creating them with a while statement, I have created them one by one.
To complete the following example, open the text editor of your choice and...