MCPcopy Index your code
hub / github.com/python/cpython / window_width

Method window_width

Lib/turtle.py:1336–1343  ·  view source on GitHub ↗

Return the width of the turtle window. Example (for a TurtleScreen instance named screen): >>> screen.window_width() 640

(self)

Source from the content-addressed store, hash-verified

1334 self._update()
1335
1336 def window_width(self):
1337 """ Return the width of the turtle window.
1338
1339 Example (for a TurtleScreen instance named screen):
1340 >>> screen.window_width()
1341 640
1342 """
1343 return self._window_size()[0]
1344
1345 def window_height(self):
1346 """ Return the height of the turtle window.

Callers

nothing calls this directly

Calls 1

_window_sizeMethod · 0.80

Tested by

no test coverage detected