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