Widget is the generic name for the controllers, and viewers provided by a window class library. The term originated with the X windows system. But it applies equally well (although it is less used) in the other systems.

The following is a list of frequently used widgets. They are all implemented for Tk. Other systems provide similar things but often in combination.

Coloured rectangular regions. Use as containers for grouping other widgets.
Frames used as the outermost container for an application.
Frames that display a text or bitmap.
Buttons, checkbuttons and radio buttons
Widgets with the features of labels that respond to the mouse.
Similar to labels except that they display multiline strings.
A listbox is a widget that displays a collection of strings and allows the user to select one or more of them.
A scrollbar controls the view in another widget.
A scale is a widget that displays an integer value and allows the user to edit the value by dragging a slider.
An entry allows a user to enter and edit a one line string.
Menus and menubuttons
Used to select from a fixed list. Menus can be popup, cascading etc.

For more details on the widgets provided by a particular system and how to use them consult the documentation.

Return to GUI home page.

Last Changed: 9 May 1995