MCPcopy Index your code
hub / github.com/csev/py4e / _draw

Method _draw

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

Source from the content-addressed store, hash-verified

534 self.y = y
535
536 def _draw(self, canvas, options):
537 x,y = canvas.toScreen(self.x,self.y)
538 return canvas.create_rectangle(x,y,x+1,y+1,options)
539
540 def _move(self, dx, dy):
541 self.x = self.x + dx

Callers

nothing calls this directly

Calls 1

toScreenMethod · 0.80

Tested by

no test coverage detected