Purpose: list the various Tk widgets by name, with a brief example.
[Have there been any Tk widgets added since this page was created?]
[TODO - Update for 8.5, add the ttk widgets button, checkbutton, combobox, entry, frame, label, labelframe, menubutton, notebook, progressbar, radiobutton, scrollbar, separator, sizegrip, style, treeview and demo how the look differs from the default widgets.]
I also think it might be a good idea to try and create screenshots that have the best look and feel possible, which to me means a standard gray/blue color theme. The somewhat unusual color choices may lead some to believe that Tk is ugly and won't fit in. This is a good place to put our best foot forward
CORE WIDGETS and no, the ordering is most definitely not aimless... DKF
- button (generic graphical activatable item)
- radiobutton (one button which eventually will be a mutually exclusive selection button)
- menubutton (one button storing a menu) slebetman A menubutton is what Windows developers call combobox. Unfortunately, on Windows, menubutton does not look like a proper combobox so users will usually be confused by the menubutton. On other operating systems like SunOS and the Mac, the menubutton is exactly what the user expects.
- label (textual information)
- labelframe (info attached to a group of widgets. NEW WIDGET IN 8.4!)
- message (a variation on the theme of labels; uncommon)
- frame (a box for other widgets)
(No picture, as frames don't look very impressive. They're not meant to...)
- toplevel (a frame that doesn't live inside another widget)
(No picture, as toplevels don't look very impressive. They're not meant to...)
- panedwindow (a container for widgets that lets the user proportion space between them. NEW WIDGET IN 8.4!)
- menu (accesses the real, OS menu on some platforms)
(A bit awkward to take a picture of this one... :^)
- scale (for adjusting numeric values)
- listbox (selection from a list; Configurable line colours new in 8.3)
- entry (Single-line text entry)
- spinbox (Numeric entry widget. NEW WIDGET IN 8.4!) MG The spinbox can also be used for non-numerical items. If you give it a list of strings, it'll scroll through them all.
- text (Multi-line text entry, but also hypertext and so much more. A very versatile widget indeed...)
- canvas (Hyper-graphics; extremely powerful)
DERIVED WIDGETS (implemented by OS on some platforms)
Standard Tk on Unix:
Tk on Unix in Motif-emulation mode:
Standard Tk on Windows:
(looks very similar to the above dialogs...)
ZipGuy - added paned window and tk_chooseDirectory
[Category Widget|Category Dialog|Category GUI]