MCPcopy Create free account
hub / github.com/csev/py4e / _draw

Method _draw

code/graphics/graphics.py:875–879  ·  view source on GitHub ↗
(self, canvas, options)

Source from the content-addressed store, hash-verified

873 self.img = pixmap.image
874
875 def _draw(self, canvas, options):
876 p = self.anchor
877 x,y = canvas.toScreen(p.x,p.y)
878 self.imageCache[self.imageId] = self.img # save a reference
879 return canvas.create_image(x,y,image=self.img)
880
881 def _move(self, dx, dy):
882 self.anchor.move(dx,dy)

Callers

nothing calls this directly

Calls 1

toScreenMethod · 0.80

Tested by

no test coverage detected