The Entry Widget
Create an Entry widget with the Entry
method. An entry widget is a space for
the user to enter text. The value that the user has typed into the
widget is stored in the variable pointed to by the -textvariable
option.
$parent->Entry (options
)
The standard configuration options that apply to Entry
are: -background
, -bg
, -borderwidth
, -bd
, -cursor
, -exportselection
, -font
, -foreground
, -fg
, -high
-lightbackground
, -highlightcolor
, -highlightthickness
, -insertbackground
, -in
-sertborderwidth
, -insertofftime
, -insertontime
, -insertwidth
, -justify
, -relief
, -selectbackground
, -selectborderwidth
, -selectforeground
, -state
, -takefocus
, and -xscrollcommand
.
Other options are:
-show =>
x
Defines a character to be displayed in place of actual typed text (for use with passwords).
-textvariable =>
\$
variable
Points to the variable containing text to be displayed in the Entry widget. 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.