小编Joh*_*ohn的帖子

如何在 Tkinter 中隐藏密码

def lock():
    global pas,lk
    lk=Tk.Frame(main)
    lk.pack(fill="both", anchor="center", expand=1)
    Tk.Label(lk, text="", font="arial 75").pack(anchor="center", side="top")
    fpas=Tk.LabelFrame(lk, text="Zadejte heslo:")
    fpas.pack(anchor="center")
    pas=Tk.Entry(fpas)
    pas.pack()
    Tk.Button(lk, text="OK", command=check).pack(side="top")
    Tk.Button(lk, text="Vypnout", command=lkend).pack(side="top")
    return
Run Code Online (Sandbox Code Playgroud)

This is a part of my code and I want to change it. When I write my password into Tk.Entry called pas, I don´t want to see numbers, but a only specific symbol, such as * or another symbol. Thanks for the answer.

P.S: Please don´t evaluate my code, I know that I …

python tkinter password-protection python-2.7

0
推荐指数
1
解决办法
3416
查看次数

标签 统计

password-protection ×1

python ×1

python-2.7 ×1

tkinter ×1