ZetCode

Tcl/Tk tutorial

last modified October 18, 2023

This is Tcl/Tk tutorial. It covers the basics of programming with Tcl and Tk. The tutorial is suitable for beginners and intermediate programmers. The sources are available at the author's Github Tcl-Tk-Examples repository.

Table of contents

Tk

Tk is an open source, cross-platform widget toolkit that provides a library of basic elements for building a graphical user interface (GUI). The first public release of Tk was in 1991. There are bindings for several other languages including Ada, Perl, Ruby, Python or Common Lisp. The Tk library is often referred with its main language as Tcl/Tk.

Related tutorials

ZetCode presents other two related tutorials that you might be interested in: Tcl tutorial and Tkinter tutorial.

Author

I am Jan Bodnar, a programmer and technical writer. I have been writing programming tutorials at ZetCode since 2007 and have published eight e-books. See about the author.