1ttk::label(n) Tk Themed Widget ttk::label(n)
2
3
4
5______________________________________________________________________________
6
8 ttk::label - Display a text string and/or image
9
11 ttk::label pathName ?options?
12______________________________________________________________________________
13
15 A ttk::label widget displays a textual label and/or image. The label
16 may be linked to a Tcl variable to automatically change the displayed
17 text.
18
20 -class -compound -cursor
21 -image -padding -state-style-takefocus
22 -text -textvariable -underline
23 -width
24
25 See the ttk_widget manual entry for details on the standard options.
26
28 Command-Line Name:-anchor
29 Database Name: anchor
30 Database Class: Anchor
31
32 Specifies how the information in the widget is positioned rela‐
33 tive to the inner margins. Legal values are n, ne, e, se, s,
34 sw, w, nw, and center. See also -justify.
35
36 Command-Line Name:-background
37 Database Name: frameColor
38 Database Class: FrameColor
39
40 The widget's background color. If unspecified, the theme
41 default is used.
42
43 Command-Line Name:-font
44 Database Name: font
45 Database Class: Font
46
47 Font to use for label text.
48
49 Command-Line Name:-foreground
50 Database Name: textColor
51 Database Class: TextColor
52
53 The widget's foreground color. If unspecified, the theme
54 default is used.
55
56 Command-Line Name:-justify
57 Database Name: justify
58 Database Class: Justify
59
60 If there are multiple lines of text, specifies how the lines are
61 laid out relative to one another. One of left, center, or
62 right. See also -anchor.
63
64 Command-Line Name:-relief
65 Database Name: relief
66 Database Class: Relief
67
68 Specifies the 3-D effect desired for the widget border. Valid
69 values are flat, groove, raised, ridge, solid, and sunken.
70
71 Command-Line Name:-wraplength
72 Database Name: wrapLength
73 Database Class: WrapLength
74
75 Specifies the maximum line length (in pixels). If this option
76 is less than or equal to zero, then automatic wrapping is not
77 performed; otherwise the text is split into lines such that no
78 line is longer than the specified value.
79
81 Supports the standard widget commands configure, cget, identify,
82 instate, and state; see ttk::widget(n).
83
85 The class name for a ttk::label is TLabel.
86
87 Dynamic states: disabled, readonly.
88
89 TLabel styling options configurable with ttk::style are:
90
91 -background color
92 -compound compound
93 -foreground color
94 -font font
95
96 Some options are only available for specific themes.
97
98 See the ttk::style manual page for information on how to configure ttk
99 styles.
100
102 ttk::widget(n), label(n)
103
104
105
106Tk 8.5 ttk::label(n)