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 =>xDefines a character to be displayed in place of actual typed text (for use with passwords).
-textvariable =>\$variablePoints to the variable containing text to be displayed in the Entry widget. Button text will change as
$variabledoes.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access