Chapter 13. Creating the Address Book Application
In this chapter, we will cover:
Creating the address book application
Adding a record
Navigating records
Deleting a record
Finding a record
Full listing
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...