ttk::label(3tk) | Tk Themed Widget | ttk::label(3tk) |
ttk::label - 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: -text Database Name: text Database Class: Text
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
-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.
8.5 | Tk |