MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / title

Method title

Python/Turtle.py:3632–3647  ·  view source on GitHub ↗

Set title of turtle-window Argument: titlestring -- a string, to appear in the titlebar of the turtle graphics window. This is a method of Screen-class. Not available for TurtleScreen- objects. Example (for a Screen instance named scr

(self, titlestring)

Source from the content-addressed store, hash-verified

3630 self.update()
3631
3632 def title(self, titlestring):
3633 """Set title of turtle-window
3634
3635 Argument:
3636 titlestring -- a string, to appear in the titlebar of the
3637 turtle graphics window.
3638
3639 This is a method of Screen-class. Not available for TurtleScreen-
3640 objects.
3641
3642 Example (for a Screen instance named screen):
3643 >>> screen.title("Welcome to the turtle-zoo!")
3644 """
3645 if _Screen._root is not None:
3646 _Screen._root.title(titlestring)
3647 _Screen._title = titlestring
3648
3649 def _destroy(self):
3650 root = self._root

Callers 2

pong.pyFile · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected