[wxpython-users] Is there a text control that can dynamically
mask/unmask its text?
Raffaello Barella
barbarossa.platz at gmail.com
Sat Apr 5 09:02:49 PDT 2008
You can try making TWO wx.TextCtrl, same size, same position, the first one
with style wx.TE_PASSWORD and the second one without, and then show the one
you desire on instruction. You could also, with a little code in the handler
of the event wx.EVT_TEXT, replicate the same text in both controls, but
speaking of passwords it does not seem to be a good idea.
2008/4/5, Andriy <basilisk96 at gmail.com>:
>
> 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-
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200804=
05/82c1f2df/attachment.htm
More information about the wxpython-users
mailing list