PasswordInput¶
A widget to allow the entry of a password. Any value typed by the user will be obscured, allowing the user to see the number of characters they have typed, but not the actual characters.






Not supported
Usage¶
The PasswordInput is functionally identical to a TextInput, except for how the text is displayed. All features supported by TextInput are also supported by PasswordInput.
import toga
password = toga.PasswordInput()
Notes¶
- Winforms does not support the use of partially or fully transparent colors for the PasswordInput background. If a color with an alpha value is provided (including
TRANSPARENT), the alpha channel will be ignored. ATRANSPARENTbackground will be rendered as white. - On Winforms, if a PasswordInput is given an explicit height, the rendered widget will not expand to fill that space. The widget will have the fixed height determined by the font used on the widget. In general, you should avoid setting a
heightstyle property on PasswordInput widgets.