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 -style -takefocus
22 -text -textvariable -underline
23 -width
24
25 See the ttk_widget manual entry for details on the standard options.
26
28 [-anchor anchor] Specifies how the information in the widget is posi‐
29 tioned relative to the inner margins. Legal values are n, ne, e, se,
30 s, sw, w, nw, and center. See also -justify. [-background frameColor]
31 The widget's background color. If unspecified, the theme default is
32 used. [-font font] Font to use for label text. [-foreground text‐
33 Color] The widget's foreground color. If unspecified, the theme
34 default is used. [-justify justify] If there are multiple lines of
35 text, specifies how the lines are laid out relative to one another.
36 One of left, center, or right. See also -anchor. [-padding padding]
37 Specifies the amount of extra space to allocate for the widget. The
38 padding is a list of up to four length specifications left top right
39 bottom. If fewer than four elements are specified, bottom defaults to
40 top, right defaults to left, and top defaults to left.
41 [-relief relief] Specifies the 3-D effect desired for the widget bor‐
42 der. Valid values are flat, groove, raised, ridge, solid, and sunken.
43 [-text text] Specifies a text string to be displayed inside the widget
44 (unless overridden by -textvariable). [-wraplength wrapLength] Speci‐
45 fies the maximum line length (in pixels). If this option is less than
46 or equal to zero, then automatic wrapping is not performed; otherwise
47 the text is split into lines such that no line is longer than the spec‐
48 ified value.
49
51 Supports the standard widget commands configure, cget, identify,
52 instate, and state; see ttk::widget(n).
53
55 ttk::widget(n), label(n)
56
57
58
59Tk 8.5 ttk::label(n)