(self)
| 3821 | _title = _CFG["title"] |
| 3822 | |
| 3823 | def __init__(self): |
| 3824 | if _Screen._root is None: |
| 3825 | _Screen._root = self._root = _Root() |
| 3826 | self._root.title(_Screen._title) |
| 3827 | self._root.ondestroy(self._destroy) |
| 3828 | if _Screen._canvas is None: |
| 3829 | width = _CFG["width"] |
| 3830 | height = _CFG["height"] |
| 3831 | canvwidth = _CFG["canvwidth"] |
| 3832 | canvheight = _CFG["canvheight"] |
| 3833 | leftright = _CFG["leftright"] |
| 3834 | topbottom = _CFG["topbottom"] |
| 3835 | self._root.setupcanvas(width, height, canvwidth, canvheight) |
| 3836 | _Screen._canvas = self._root._getcanvas() |
| 3837 | TurtleScreen.__init__(self, _Screen._canvas) |
| 3838 | self.setup(width, height, leftright, topbottom) |
| 3839 | |
| 3840 | def setup(self, width=_CFG["width"], height=_CFG["height"], |
| 3841 | startx=_CFG["leftright"], starty=_CFG["topbottom"]): |
nothing calls this directly
no test coverage detected