def METHOD_NAME(self, show_password):
    if show_password:
        echo_mode = QtWidgets.QLineEdit.Normal
    else:
        echo_mode = QtWidgets.QLineEdit.Password
    self.password_input.setEchoMode(echo_mode)