(self)
Delete all drawings and all turtles from the TurtleScreen.

        No argument.

        Reset empty TurtleScreen to its initial state: white background,
        no backgroundimage, no eventbindings and tracing on.

        Example (for a TurtleScreen instance named screen):
        >>> screen.clear()

        Note: this method is not available as function.
Delete all drawings and all turtles from the TurtleScreen.
Delete all drawings and all turtles from the TurtleScreen .
def clear(self):
        """Delete all drawings and all turtles from the TurtleScreen.

        No argument.

        Reset empty TurtleScreen to its initial state: white background,
        no backgroundimage, no eventbindings and tracing on.

        Example (for a TurtleScreen instance named screen):
        >>> screen.clear()

        Note: this method is not available as function.
        """
        self._delayvalue = _CFG["delay"]
        self._colormode = _CFG["colormode"]
        self._delete("all")
        self._bgpic = self._createimage("")
        self._bgpicname = "nopic"
        self._tracing = 1
        self._updatecounter = 0
        self._turtles = []
        self.bgcolor("white")
        for btn in 1, 2, 3:
            self.onclick(None, btn)
        self.onkeypress(None)
        for key in self._keys[:]:
            self.onkey(None, key)
            self.onkeypress(None, key)
        Turtle._pen = None
def clear ( self ) : self . _delayvalue = _CFG [ "delay" ] self . _colormode = _CFG [ "colormode" ] self . _delete ( "all" ) self . _bgpic = self . _createimage ( "" ) self . _bgpicname = "nopic" self . _tracing = 1 self . _updatecounter = 0 self . _turtles = [ ] self . bgcolor ( "white" ) for btn in 1 , 2 , 3 : self . onclick ( None , btn ) self . onkeypress ( None ) for key in self . _keys [ : ] : self . onkey ( None , key ) self . onkeypress ( None , key ) Turtle . _pen = None