Purpose: list the various widgets by name, with a brief example. [[Have there been any Tk widgets added since this page was created?] ---- '''CORE WIDGETS''' ''and no, the ordering is most definitely not aimless... DKF'' * [button] ''(generic graphical activatable item)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/button.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_button.gif] * [checkbutton] ''(one on/off button)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/checkbutton.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_checkbutton.gif] * [radiobutton] ''(one button which eventually will be a mutually exclusive selection button)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/radiobutton.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_radiobutton.gif] * [menubutton] ''(one button stored in a menu)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/menubutton.gif] * [label] ''(textual information)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/label.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_label.gif] * [labelframe] ''(info attached to a group of widgets. '''NEW WIDGET IN 8.4!''')'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/labelframe.gif] * [message] ''(a variation on the theme of labels; uncommon)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/message.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_message.gif] * [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!''')'' [http://zipguy.012webpages.com/tcl/panedwin.jpg] * [menu] ''(accesses the '''real''', OS menu on some platforms)'' (A bit awkward to take a picture of this one... :^) * [scale] ''(for adjusting numeric values)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/scale.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_scale.gif] * [scrollbar] ''(for adjusting scrollable widgets)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/scrollbar.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_scrollbar.gif] * [listbox] ''(selection from a list; '''Configurable line colours new in 8.3''')'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/listbox.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_listbox.gif] * [entry] ''(Single-line text entry)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/entry.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_entry.gif] * [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.'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/spinbox.gif] * [text] ''(Multi-line text entry, but also hypertext ''and'' so much more. A very versatile widget indeed...)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/text.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_text.gif] * [canvas] ''(Hyper-graphics; extremely powerful)'' [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/canvas.gif] '''DERIVED WIDGETS''' (implemented by OS on some platforms) * [tk_optionMenu] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/w_option.gif] * [tk_dialog] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/dialog_w.gif] * [tk_messageBox] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/messageBox_w.gif] * [tk_getOpenFile] Standard Tk on '''Unix''': [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/getOpenFile_tk.gif] Tk on Unix in '''Motif-emulation''' mode: [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/getOpenFile_motif.gif] Standard Tk on '''Windows''': [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/getOpenFile_win.gif] * [tk_getSaveFile] ''(looks very similar to the above dialogs...)'' * [tk_chooseColor] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/chooseColor_wpid.gif] [http://www.man.ac.uk/~zzcgudf/tcl/wikipix/chooseColor_w.jpg] * [tk_chooseDirectory] [http://zipguy.012webpages.com/tcl/choosedir.jpg] ---- [ZipGuy] - added paned window and tk_chooseDirectory ---- [[[Category Widget]|[Category Dialog]|[Category GUI]]]