What Is Tk?
Tk is a “graphic toolkit,” something that lets your Ruby programs interact with the user by means of windows, dialogs, buttons, drop-down menus, and the rest of the paraphernalia we all associate with user-friendly applications.
Before trying to understand why Ruby/Tk works the way it does, you should become aware of a little bit of history, because Tk was not originally written for Ruby. The story of Tk starts with a scripting language named Tcl (“Tool Command Language”), which was created by John Ousterhout in 1988. Tk was created to lend GUI functionality to Tcl.
For years, it was most common to hear Tcl and Tk mentioned together, even written Tcl/Tk almost as if they were one thing. But they are really separate from each other, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access