0
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
これは私のコードの一部です。変更したいです。 Tk.Entry
にパスワードを書き込んでpas
と書いても、数字は見たくないが、*や別の記号のような特定の記号だけを見たい。答えをありがとう。Tkinterのパスワードを隠す方法
PS:私は、私はより良い、それを書くことができることを知って、私のコードを評価ドントしてください、私はだけでなく、私のTkinterのスキルのために、パスワードを非表示にする方法を尋ねる:-D
可能な複製(http://stackoverflow.com/questions/2416486/how-to-create-a-password-entry [Tkinterのを使用してパスワード入力フィールドを作成する方法] -field-using-tkinter) – nbro