Tcl tutorials
Tcl (Tool Command Language) is a powerful, interpreted scripting language designed for ease of use and rapid development. Known for its simplicity and flexibility, Tcl is widely used for scripting, automation, and GUI development with Tk.
E-books
Tcl provides a straightforward syntax for tasks like string manipulation, list processing, and file operations. Its integration with Tk enables the creation of cross-platform graphical user interfaces, making it a popular choice for desktop applications.
Tcl is commonly used for system administration scripts, testing automation, and embedded systems, offering extensibility through packages and a robust community for support.
Read introductory Tcl tutorial and Tcl Tk tutorial .
Detailed Tcl and Tk tutorials
The detailed Tcl and Tk tutorial articles start with the language basics and continue to complete graphical applications. The older introductory series is still available at Tcl tutorial and Tcl Tk tutorial.
- Introduction to Tcl
- Tcl values and types
- Tcl string processing
- Tcl dictionaries
- Tcl scope and namespaces
- Tcl error handling
- Tcl regular expressions
- Tcl files and directories
- Tcl command-line arguments
- Tcl running processes
- Tcl packages and modules
- Tcl event loop and timers
- Tcl binary data
- Tcl object orientation
- Tcl coroutines
- Tcl testing
- Tcl debugging and tracing
- Tcl networking
- Tcl data structures
- Tcl SQLite
- Tk events and bindings
- Tk variables and traces
- Tk entry and text widgets
- Tk listbox and treeview
- Tk ttk widgets and themes
- Tk fonts and colours
- Tk images
- Tk canvas animation
- Tk clipboard and drag and drop
- Tk application structure
- Tk text editor project
Core Tcl commands
- Tcl set Command
- Tcl unset Command
- Tcl incr Command
- Tcl append Command
- Tcl lappend Command
- Tcl array Command
- Tcl dict Command
- Tcl namespace Command
- Tcl variable Command
- Tcl global Command
- Tcl if Command
- Tcl else Command
- Tcl elseif Command
- Tcl while Command
- Tcl for Command
- Tcl foreach Command
- Tcl switch Command
- Tcl break Command
- Tcl continue Command
- Tcl return Command
- Tcl puts Command
- Tcl gets Command
- Tcl read Command
- Tcl open Command
- Tcl close Command
- Tcl flush Command
- Tcl seek Command
- Tcl tell Command
- Tcl eof Command
- Tcl proc Command
- Tcl source Command
- Tcl eval Command
- Tcl apply Command
- Tcl uplevel Command
- Tcl upvar Command
- Tcl catch Command
- Tcl error Command
- Tcl try Command
- Tcl finally Command
- Tcl exit Command
- Tcl exec Command
- Tcl pid Command
- Tcl after Command
- Tcl time Command
- Tcl clock Command
- Tcl info Command
- Tcl trace Command
- Tcl rename Command
- Tcl interp Command
- Tcl string Command
- Tcl format Command
- Tcl scan Command
- Tcl binary Command
- Tcl regexp Command
- Tcl regsub Command
- Tcl list Command
- Tcl lindex Command
- Tcl llength Command
- Tcl lrange Command
- Tcl linsert Command
- Tcl lreplace Command
- Tcl lsearch Command
- Tcl lsort Command
- Tcl concat Command
- Tcl join Command
- Tcl split Command
- Tcl expr Command
- Tcl mathfunc Command
- Tcl mathop Command
- Tcl file Command
- Tcl glob Command
- Tcl cd Command
- Tcl pwd Command
- Tcl package Command
- Tcl history Command
- Tcl unknown Command
- Tcl auto_load Command
- Tcl auto_execok Command
- Tcl auto_reset Command
- Tcl vwait Command
- Tcl http Package
last modified November 24, 2026