Opentopia Directory Encyclopedia Tools

Tk (computing)

Encyclopedia : T : TK : TKC : Tk (computing)



 

Tk is an open source, cross-platform widget toolkit, that is, a library of basic elements for building a graphical user interface (GUI).

History

Tk was developed by John Ousterhout as an extension for the Tcl scripting language. Bindings exist for several other languages, including Perl, Python, Ruby, and Common Lisp. There are two ways to use Tk from Perl: the Tcl::Tk Perl module, which uses Tcl as a bridge (this approach provides more flexibility), and Perl/Tk, which has Tcl stripped away (only adopted Tcl/Tk extensions are available). The Python and Ruby bindings also use Tcl as a bridge for Tk.

Tk has been ported to run on most flavors of Linux, Apple Macintosh, Unix, and Windows. Since Tcl/Tk 8, it offers "native look and feel" (for instance, menus and buttons are displayed in the manner of "native" software for any given platform). Also, there are several extensions to provide external drag-and-drop, non-rectangular windows, and native widgets.

Like Tcl, Tk supports Unicode within the Basic Multilingual Plane but it has not yet been extended to handle 32-bit Unicode.

Features

Tk provides the following widgets:

as well as the following top-level windows: Tk also provides three geometry managers:

The most unusual features of Tk are its canvas and text widgets, which provide capabilities found in few if any other widget toolkits.

See also

External links

Generic Tk and Tcl/Tk

Perl/Tk

Ruby/Tk

Common Lisp/Tk

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: