def clear(self):
        ''' Clear the undo list. '''
        self._undos.clear()
        self._redos.clear()
        self._savepoint = None
        self._receiver = self._undos
def clear ( self ) : self . _undos . clear ( ) self . _redos . clear ( ) self . _savepoint = None self . _receiver = self . _undos
Clear the undo list.