How to create a password entry field using Tkinter

后端 未结 4 1749
后悔当初
后悔当初 2020-11-29 02:44

I am trying to code a login window using Tkinter but I\'m not able to hide the password text in asterisk format. This means the password entry is plain text, which has to be

4条回答
  •  执笔经年
    2020-11-29 03:28

    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.

提交回复
热议问题