Version 10 of Intro to Tk

Updated 2007-05-30 15:39:38 by lars_h

[hopefully someone will write an introduction to tk, explaining its virtues]

  • What is Tk

Tk is a Tcl extension designed to make creating GUI interfaces simple, yet giving said applications remarkable power for all their simplicity.

  • What makes it unique

The Tk canvas is one of the more powerful widgets developers have found. The Tk text widget has built in hypertext and undo/redo capability. Tk was designed for rapid development.


'Hints for beginners (things that may not be obvious if you come to Tk from the wrong community):

Windows

  1. Every rectangular unit (in particular: the various widgets) on the screen is called a window. Windows as in "document window" is a toplevel.
  2. Windows (toplevels excepted) do not show on screen until they have become mapped. This happen when they are assigned a geometry manager, such as pack or grid.
  3. Windows are arranged in a hierarchy, which shows up in how they are named.

Some example programs:

...


Category Documentation