Tcl/Tk GUI Application Rules
These are some notes I made regarding applications written using Tcl/Tk.
Basically a few things that I try to check for in all the Tk based applications I write to
ensure that they have a good look and feel. Most of my experience has been with Tk
applications on Microsoft Windows, so the notes are biased towards this platform.
The application should have an icon that is not the standard wish icon.
The Enter key should work as expected and map to the OK button in all
The Escape key should work as expected and map to the Cancel button in
The main window and all dialogs should have title bars that include the
application name in the title.
Modal dialogs should be modal.
Using the Close Menu item from the System menu or the Close button
provided by the Window Manager for every window should do the equivalent of the Cancel
button in all dialogs. In the main application window, closing the application using these
methods should do the equivalent of the Exit menu item.
The application should always have a "Help" item in the
menu-bar as the last item. This should have atleast an "About" menu-item.
The application should check for unsupported Tcl/Tk versions and exit
The application should exit gracefully on required packages not being
Alt-Tabbing back to the application when some dialog is open should work
correctly and bring the entire stack of windows into focus.
The latest version of this site has moved to it's own domain at http://www.grok2.com/. Please update your bookmarks and
links. Click here to go to the new site.