Full listing
This section contains a full listing of the address book application, as it should look in your program. This is a basic data entry application that highlights many of the functionalities of the Tcl/Tk language. At this point, you may wish to sort the dictionary to provide an alphabetical listing of the data, implement multiple field search capability, and toggle the state of the buttons and menu entries to limit the user's abilities in a logical manner or anything else you might want to add.
It's all there in Tcl/Tk. The only limit is your imagination.
# Source the Tk Package package require Tk #Configure the Window wm title . "Address Book" # Main Frame frame .main -borderwidth 1 -relief solid -padx 10 -pady 10 # Entry Widgets entry ...
Get Tcl/Tk 8.5 Programming Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.