Home
last modified time | relevance | path

Searched refs:canvwidth (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/lib-tk/
Dturtle.py360 canvwidth=600, canvheight=500): argument
364 self.canvwidth, self.canvheight = canvwidth, canvheight
384 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
386 if canvwidth:
387 self.canvwidth = canvwidth
393 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
394 self.canvwidth//2, self.canvheight//2))
395 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
396 self.canvwidth)
407 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
[all …]
/external/python/cpython3/Lib/
Dturtle.py336 canvwidth=600, canvheight=500): argument
340 self.canvwidth, self.canvheight = canvwidth, canvheight
360 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
362 if canvwidth:
363 self.canvwidth = canvwidth
369 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
370 self.canvwidth//2, self.canvheight//2))
371 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
372 self.canvwidth)
383 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
[all …]
/external/python/cpython2/Demo/turtle/
DturtleDemo.py107 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
130 self.canvwidth = 1000
133 root, 800, 600, self.canvwidth, self.canvheight)
Dturtle.cfg3 canvwidth = 1200
/external/python/cpython3/Lib/turtledemo/
D__main__.py201 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
234 self.canvwidth = 1000
237 root, 800, 600, self.canvwidth, self.canvheight)
Dturtle.cfg3 canvwidth = 1200
/external/python/cpython2/Doc/library/
Dturtle.rst1524 .. function:: screensize(canvwidth=None, canvheight=None, bg=None)
1526 :param canvwidth: positive integer, new width of canvas in pixels
2105 canvwidth = 400
/external/python/cpython3/Doc/library/
Dturtle.rst1581 .. function:: screensize(canvwidth=None, canvheight=None, bg=None)
1583 :param canvwidth: positive integer, new width of canvas in pixels
2231 canvwidth = 400