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

My name is Jan Bodnar and I am a passionate programmer with many years of programming experience. I have been writing programming articles since 2007. So far, I have written over 1400 articles and 8 e-books. I have over eight years of experience in teaching programming.