17. An Introduction to Tk

Tk is a toolkit package that allows you to create graphical user interfaces by writing Tcl scripts. Tk extends the built-in Tcl command set described in Part I with additional commands for creating user interface elements called widgets, arranging them into interesting layouts on the screen using geometry managers, and connecting them to each other with the enclosing application. Although Tk was developed to work with Tcl, other dynamic languages such as Perl, Python, and Ruby have adapted Tk to give these languages the ability to create graphical user interfaces. The commands and descriptions here apply to those languages as well, but the syntax is different. This part of the book describes Tk’s Tcl commands.

Like ...

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.