MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _drawimage

Method _drawimage

tools/python-3.11.9-amd64/Lib/turtle.py:724–730  ·  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

722 return self.cv.create_image(0, 0, image=image)
723
724 def _drawimage(self, item, pos, image):
725 """Configure image item as to draw image object
726 at position (x,y) on canvas)
727 """
728 x, y = pos
729 self.cv.coords(item, (x * self.xscale, -y * self.yscale))
730 self.cv.itemconfig(item, image=image)
731
732 def _setbgpic(self, item, image):
733 """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