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

Method __init__

code/graphics/graphics.py:562–565  ·  view source on GitHub ↗
(self, p1, p2, options=["outline","width","fill"])

Source from the content-addressed store, hash-verified

560 # (opposite corners) Line segment is a degenerate case.
561
562 def __init__(self, p1, p2, options=["outline","width","fill"]):
563 GraphicsObject.__init__(self, options)
564 self.p1 = p1.clone()
565 self.p2 = p2.clone()
566
567 def _move(self, dx, dy):
568 self.p1.x = self.p1.x + dx

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected