O'Reilly logo

Tcl/Tk 8.5 Programming Cookbook by Bert Wheeler

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

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 ...

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