Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to display * for password in Tcl/Tk

Status
Not open for further replies.

sbeazzle

Technical User
Mar 3, 2002
4
US
Can some one tell me how to display *** when
enetring password in a Tcl/Tk "entry" field
instead of the typed characters ?? Thanks.
 
The entry widget -show option is your friend. Direct from the entry reference page:

"If this option is specified, then the true contents of the entry are not displayed in the window. Instead, each character in the entry's value will be displayed as the first character in the value of this option, such as “*”. This is useful, for example, if the entry is to be used to enter a password. If characters in the entry are selected and copied elsewhere, the information copied will be what is displayed, not the true contents of the entry."

So:

Code:
entry .passwd -show *
- Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top