10.37.3.2 Types of Widget
In Tcl/Tk there are currently 15 types of widget.
In alphabetical order they are
- a simple press button
- is a container for displaying “drawn” objects such as lines,
circles, and polygons.
- a button that hold a state of either on or off
- a text entry field
- a widget that is a container for other widgets
- a simple label
- a box containing a list of options
- a widget for creating menu bars
- a button, which when pressed offers a selection of choices
- a multi-line text display widget
- a button used to form groups of mutually interacting buttons
(When one button is pressed down, the others pop up.)
- is like a slider on a music console. It consists of
a trough scale and a slider. Moving the slider to a position on the scale
sets the overall value of the widget to that value.
- used to add scrollbars to windows or canvases. The scrollbar
has a slider, which when moved changes the value of the slider widget.
- a sophisticated multi-line text widget that can also display
other widgets such as buttons
- for creating new standalone toplevel windows. (These windows are
containers for other widgets. They are not terminal windows.)
Meet The Main Tk Widgets
Send feedback on this subject.