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

Method _drawimage

Lib/turtle.py:717–723  ·  view source on GitHub ↗

Configure image item as to draw image object at position (x,y) on canvas)

(self, item, pos, image)

Source from the content-addressed store, hash-verified

715 return self.cv.create_image(0, 0, image=image)
716
717 def _drawimage(self, item, pos, image):
718 """Configure image item as to draw image object
719 at position (x,y) on canvas)
720 """
721 x, y = pos
722 self.cv.coords(item, (x * self.xscale, -y * self.yscale))
723 self.cv.itemconfig(item, image=image)
724
725 def _setbgpic(self, item, image):
726 """Configure image item as to draw image object

Callers 2

_drawturtleMethod · 0.80
stampMethod · 0.80

Calls 1

coordsMethod · 0.45

Tested by

no test coverage detected