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)
| 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 |