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

Method setArrow

code/graphics/graphics.py:664–667  ·  view source on GitHub ↗
(self, option)

Source from the content-addressed store, hash-verified

662 return canvas.create_line(x1,y1,x2,y2,options)
663
664 def setArrow(self, option):
665 if not option in ["first","last","both","none"]:
666 raise GraphicsError, BAD_OPTION
667 self._reconfig("arrow", option)
668
669 def __str__(self):
670 return "Line: %s-%s" % (self.p1.coordStr(), self.p2.coordStr())

Callers

nothing calls this directly

Calls 1

_reconfigMethod · 0.80

Tested by

no test coverage detected