def set_password(self, password): if password is None: password = "" self._password_entry.set_text(password)