1label(n) Tile Widget Set label(n)
2
3
4
6 ttk::label - Display a text string and/or image
7
9 ttk::label pathName ?options?
10
12 A label widget displays a textual label and/or image. The label may be
13 linked to a Tcl variable to automatically change the displayed text.
14 -class -compound -cursor -image -style -takefo‐
15 cus -text -textvariable -underline -width
16
18 [-anchor anchor] Specifies how the information in the widget is posi‐
19 tioned relative to the inner margins. Legal values are n, ne, e, se,
20 s, sw, w, nw, and center. See also -justify. [-background frameColor]
21 The widget's background color. If unspecified, the theme default is
22 used. [-font font] Font to use for label text. [-foreground text‐
23 Color] The widget's foreground color. If unspecified, the theme
24 default is used. [-justify justify] If there are multiple lines of
25 text, specifies how the lines are laid out relative to one another.
26 One of left, center, or right. See also -anchor. [-padding padding]
27 Specifies the amount of extra space to allocate for the widget. The
28 padding is a list of up to four length specifications left top right
29 bottom. If fewer than four elements are specified, bottom defaults to
30 top, right defaults to left, and top defaults to left.
31 [-relief relief] Specifies the 3-D effect desired for the widget bor‐
32 der. Valid values are flat, groove, raised, ridge, solid, and sunken.
33 [-text text] Specifies a text string to be displayed inside the widget
34 (unless overridden by -textvariable). [-wraplength wrapLength] Speci‐
35 fies the maximum line length (in pixels). If this option is less than
36 or equal to zero, then automatic wrapping is not performed; otherwise
37 the text is split into lines such that no line is longer than the spec‐
38 ified value.
39
41 pathName cget option
42
43 pathName configure ?option? ?value option value ...?
44
45 pathName instate statespec ?script?
46
47 pathName state ?stateSpec?
48 See widget(n)
49
51 widget(n)
52
53
54
55tile 0.2 label(n)