How to create a password entry field using Tkinter

A quick google search yielded this

widget = Entry(parent, show="*", width=15)

where widget is the text field, parent is the parent widget (a window, a frame, whatever), show is the character to echo (that is the character shown in the Entry) and width is the widget's width.


If you don't want to create a brand new Entry widget, you can do this:

myEntry.config(show="*");

To make it back to normal again, do this:

myEntry.config(show="");

I discovered this by examining the previous answer, and using the help function in the Python interpreter (e.g. help(tkinter.Entry) after importing (from scanning the documentation there). I admit I just guessed to figure out how to make it normal again.


widget-name = Entry(parent,show="*")

You can also use a bullet symbol:

bullet = "\u2022" #specifies bullet character
widget-name = Entry(parent,show=bullet)#shows the character bullet