Untitled

Anonymous
plain_text
11/30/2024 9:58 AM
480 B
17
Indexable
def toggle_password_visibility(self):
    current_show_value = self.password_entry.cget("show")
    if current_show_value == "":
        self.password_entry.configure(show="*")
        self.toggle_password_btn.configure(text="👁")
    else:
        self.password_entry.configure(show="")
        self.toggle_password_btn.configure(text="👁‍🗨")
Editor is loading...
Leave a Comment