Show password is not working #597
-
password_txt = customtkinter.CTkEntry(master=frame2, show="*", corner_radius=10, text_font=font1, width=200)
|
Beta Was this translation helpful? Give feedback.
Answered by
abhaymakes
Nov 8, 2022
Replies: 1 comment 1 reply
-
Here is the updated code : import customtkinter as c
root = c.CTk()
def show_password():
if i.get() == 1:
e.configure(show='')
else:
e.configure(show='*')
e = c.CTkEntry(root, show="*")
e.pack()
i = c.IntVar()
password_show = (root, text="Show password", variable=i, command=show_password)
password_show.pack()
root.mainloop() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Hancie123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the updated code :