parameters: (self)
docstring: Delete all of pen's drawings
docstring_summary: Delete all of pen's drawings
docstring_tokens: Delete all of pen s drawings
function: def _clear(self):
          """Delete all of pen's drawings"""
          self._fillitem = self._fillpath = None
          for item in self.items:
              self.screen._delete(item)
          self.currentLineItem = self.screen._createline()
          self.currentLine = []
          if self._drawing:
              self.currentLine.append(self._position)
          self.items = [self.currentLineItem]
          self.clearstamps()
          self.setundobuffer(self._undobuffersize)
function_tokens: def _clear ( self ) : self . _fillitem = self . _fillpath = None for item in self . items : self . screen . _delete ( item ) self . currentLineItem = self . screen . _createline ( ) self . currentLine = [ ] if self . _drawing : self . currentLine . append ( self . _position ) self . items = [ self . currentLineItem ] self . clearstamps ( ) self . setundobuffer ( self . _undobuffersize )