reset method

reset

Restores a form element’s default values. It performs the same action as a reset button.

def reset(self):
    ...

See Also