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)
| 3878 | self.update() |
| 3879 | |
| 3880 | def title(self, titlestring): |
| 3881 | """Set title of turtle-window |
| 3882 | |
| 3883 | Argument: |
| 3884 | titlestring -- a string, to appear in the titlebar of the |
| 3885 | turtle graphics window. |
| 3886 | |
| 3887 | This is a method of Screen-class. Not available for TurtleScreen- |
| 3888 | objects. |
| 3889 | |
| 3890 | Example (for a Screen instance named screen): |
| 3891 | >>> screen.title("Welcome to the turtle-zoo!") |
| 3892 | """ |
| 3893 | if _Screen._root is not None: |
| 3894 | _Screen._root.title(titlestring) |
| 3895 | _Screen._title = titlestring |
| 3896 | |
| 3897 | def _destroy(self): |
| 3898 | root = self._root |
no outgoing calls