start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 18.6 The Radiobutton Widget Chapter 18
Perl/Tk
Next: 18.8 The Entry Widget
 

18.7 The Label Widget

Create a non-interactive label with the Label command.

$parentwidget->Label (
options
)
The standard configuration options that apply to Label are: -anchor , -background , -bg , -bitmap , -borderwidth , -bd , -cursor , -font , -foreground , -fg , -height , -highlightbackground , -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.


Previous: 18.6 The Radiobutton Widget Perl in a Nutshell Next: 18.8 The Entry Widget
18.6 The Radiobutton Widget Book Index 18.8 The Entry Widget