With wxPython a password field could be created as:
wx.TextCtrl(frm, -1, '', style=wx.TE_PASSWORD )
I’m wondering if there is a way to dynamically change this password field into a normal textctrl, such that user could see what the password is.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Its not possible to change the style flag after creating the control.
You can either destroy the control and create a new one without the password flag, or maintain two side by side in a sizer, with one always hidden. When you want to switch you can copy the text into the other text control, Hide one and Show the other then call Layout on the sizer.