MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / _drawimage

Method _drawimage

Python/Turtle.py:622–628  ·  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

620 return self.cv.create_image(0, 0, image=image)
621
622 def _drawimage(self, item, pos, image):
623 """Configure image item as to draw image object
624 at position (x,y) on canvas)
625 """
626 x, y = pos
627 self.cv.coords(item, (x * self.xscale, -y * self.yscale))
628 self.cv.itemconfig(item, image=image)
629
630 def _setbgpic(self, item, image):
631 """Configure image item as to draw image object

Callers 2

_drawturtleMethod · 0.80
stampMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected