tk_messageBox − pops up a message window and waits for user response.


tk_messageBox ?option value ...? ___________________________


This procedure creates and displays a message window with an application-specified message, an icon and a set of buttons. Each of the buttons in the message window is identified by a unique symbolic name (see the −type options). After the message window is popped up, tk_messageBox waits for the user to select one of the buttons. Then it returns the symbolic name of the selected button.

The following option-value pairs are supported:

Name gives the symbolic name of the default button for this message window ( “ok”, “cancel”, and so on). See −type for a list of the symbolic names. If this option is not specified, the first button in the dialog will be made the default.

−detail string

Specifies an auxiliary message to the main message given by the −message option. The message detail will be presented beneath the main message and, where supported by the OS, in a less emphasized font than the main message.

−icon iconImage

Specifies an icon to display. IconImage must be one of the following: error, info, question or warning. If this option is not specified, then the info icon will be displayed.

−message string

Specifies the message to display in this message box. This option is ignored on Mac OS X, where platform guidelines forbid the use of a title on this kind of dialog.

−parent window

Makes window the logical parent of the message box. The message box is displayed on top of its parent window.

−title titleString

Specifies a string to display as the title of the message box. The default value is an empty string.

−type predefinedType

Arranges for a predefined set of buttons to be displayed. The following values are possible for predefinedType:


Displays three buttons whose symbolic names are abort, retry and ignore.


Displays one button whose symbolic name is ok.


Displays two buttons whose symbolic names are ok and cancel.


Displays two buttons whose symbolic names are retry and cancel.


Displays two buttons whose symbolic names are yes and no.


Displays three buttons whose symbolic names are yes, no and cancel.


set answer [tk_messageBox −message "Really quit?" \
−icon question −type yesno \
−detail "Select \"Yes\" to make the application exit"]
switch −− $answer {
yes exit
no {tk_messageBox −message "I know you like this application!" \
−type ok}


message box


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.

Free Software

Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.

Free Books

The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.