18. A Tour of the Tk Widgets

This chapter introduces the classic widget classes implemented by Tk, which have been around since nearly the beginning of Tcl. They provide a cross-platform means to create user interfaces for your scripts. In addition, these classic widgets provide an easy way to add a user interface to an existing application, whether written in Tcl or not. With the ability to embed a Tcl interpreter within applications, you can extend your applications with a graphical user interface. Or you can use Tcl’s commands to drive a command-line application and use Tk widgets to introduce a user interface.

In addition to the classic Tk widgets, recent years have seen the development of a set of themed widgets. Themes aim to separate ...

Get Tcl and the Tk Toolkit, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.