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

Method _draw

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

Source from the content-addressed store, hash-verified

691 p.move(dx,dy)
692
693 def _draw(self, canvas, options):
694 args = [canvas]
695 for p in self.points:
696 x,y = canvas.toScreen(p.x,p.y)
697 args.append(x)
698 args.append(y)
699 args.append(options)
700 return apply(GraphWin.create_polygon, args)
701
702 def __str__(self):
703 return "Polygon: %s" % \

Callers

nothing calls this directly

Calls 2

toScreenMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected