You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
537 B

3 years ago
3 years ago
3 years ago
  1. from gooey.gui.components.widgets.core.text_input import PasswordInput
  2. from gooey.gui.components.widgets.textfield import TextField
  3. from gooey.python_bindings import types as t
  4. __ALL__ = ('PasswordField',)
  5. class PasswordField(TextField):
  6. widget_class = PasswordInput # type: ignore
  7. def __init__(self, *args, **kwargs):
  8. super(PasswordField, self).__init__(*args, **kwargs)
  9. def getUiState(self) -> t.FormField: # type: ignore
  10. return t.PasswordField(**super().getUiState()) # type: ignore