The Label Widget
Create a noninteractive label with the Label
command. A label is used to display
text or an image.
$parentwidget->Label (options
)
The standard configuration options that apply to Label
are: -anchor
, -background
, -bg
, -bitmap
, -borderwidth
, -bd
, -cursor
, -font
, -foreground
, -fg
, -height
, -high
-lightbackground
, -highlightcolor
, -highlightthickness
, -image
, -justify
, -padx
, -pady
, -relief
, -takefocus
, -underline
, -width
, and -wraplength
.
Other options are:
-text =>
'
text
'
Defines the text string displayed in the label. See also
-textvariable
.-textvariable =>
\$
variable
Points to the variable containing text to be displayed in the label. Button text will change as
$
variable
does.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.