Chapter 24. Tk by Example
This chapter introduces Tk through a series of short examples. The ExecLog runs a program in the background and displays its output. The Example Browser displays the Tcl examples from the book. The Tcl Shell lets you type Tcl commands and execute them in a slave interpreter.
Tk provides a quick and fun way to generate user interfaces. In this chapter we will go through a series of short example programs to give you a feel for what you can do. Some details are glossed over in this chapter and considered in more detail later. In particular, the pack
geometry manager is covered in Chapter 25 and event bindings are discussed in Chapter 29. The Tk widgets are discussed in more detail in later chapters.
ExecLog
Our first example ...
Get Practical Programming in Tcl and Tk, Fourth Edition 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.