ttk::label
Display a text string and/or image
- Provided by: tk8.6-doc (Version: 8.6.12-1build1)
- Source: tk8.6
- Report a bug
Display a text string and/or image
ttk::label pathName ?options?
A ttk::label widget displays a textual label and/or image. The label may be linked to a Tcl variable to automatically change the displayed text.
-class -compound -cursor -image -padding -state -style -takefocus -text -textvariable -underline -width
See the ttk_widget manual entry for details on the standard options.
Command-Line Name: -anchor Database Name: anchor Database Class: Anchor
Command-Line Name: -background Database Name: frameColor Database Class: FrameColor
Command-Line Name: -font Database Name: font Database Class: Font
Command-Line Name: -foreground Database Name: textColor Database Class: TextColor
Command-Line Name: -justify Database Name: justify Database Class: Justify
Command-Line Name: -relief Database Name: relief Database Class: Relief
Command-Line Name: -wraplength Database Name: wrapLength Database Class: WrapLength
Supports the standard widget commands configure, cget, identify, instate, and state; see ttk::widget(3tk).
The class name for a ttk::label is TLabel.
Dynamic states: disabled, readonly.
TLabel styling options configurable with ttk::style are:
-background color
-compound compound
-foreground color
-font font
Some options are only available for specific themes.
See the ttk::style manual page for information on how to configure ttk styles.