[wxpython-users] Is there a text control that can dynamically mask/unmask its text?

Andriy basilisk96 at gmail.com
Sat Apr 5 06:25:54 PDT 2008


Hello,

I would like to use a simple text control that can switch between:

-- Echoing the typed characters as usual,
-- Echoing asterisks like wx.TE_PASSWORD style in wx.TextCtrl,

after the control has been initialized (for instance, controlled by a
"mask/unmask" checkbox).

I have experimented with TextCtrl.SetWindowStyle and
TextCtrl.SetWindowStyleFlag, without success.  As far as I can tell, I
cannot change the style to wx.TE_PASSWORD once the control is
created.. Is there a way to do this, or another control capable of
such behavior?

Thanks,
-amv-


More information about the wxpython-users mailing list