0

I am making a program that I need the user to enter a password, but I need to know how to make the text in an entry appear as an * so it looks real.

Cœur
  • 37,241
  • 25
  • 195
  • 267
James Turner
  • 193
  • 2
  • 3
  • 9

1 Answers1

0

Specify show option with the character you want to display instead of the characters you typed:

from Tkinter import *  # from tkinter import *  in Python 3.x

root = Tk()
Entry(root, show='*').pack()
root.mainloop()
falsetru
  • 357,413
  • 63
  • 732
  • 636