Tcl/Tk 8.5 Programming Cookbook
Computing mathematical expressions
Using the Building Blocks Control Constructs
Controlling flow with the if statement
Matching a regular expression within a string
Performing character substitution on a string
Parsing a string using conversion specifiers
Determining the length of a string
Comparing a string of characters
Locating the first instance of a character
Locating the index of a character
Determining the class of a string
Locating the last instance of a string
Determining the size of a string
Replacing values within a string
Locating a pattern within a string
Returning a range of characters from a string
Creating a string of repeated characters
Replacing ranges of characters contained within a string
Converting a string to lowercase
Converting a string to uppercase
Performing variable substitution
Expanding String Functionality Using Lists
Assigning list elements to variables
Retrieving an element from a list
Inserting elements into a list
Determining the number of elements
Splitting a string into a list
Getting the dictionary structure
Appending to an existing record
Creating a blank dictionary structure
Updating variables from a dictionary
Determining the size of a dictionary
Tk GUI Programming with Tcl/Tk
Setting the attributes of the window through window manager
Configuring and Controlling Tk Widgets
Controlling layout with the pack command
Controlling layout with the grid command
Creating an address book interface
Using Tcl Built-in Dialog Windows
Displaying a confirmation dialog
Displaying the directory dialog
Displaying the file selection dialog
Selecting a directory and file
Creating the Address Book Application