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

Method __init__

code/graphics/graphics.py:708–713  ·  view source on GitHub ↗
(self, centerPt, text)

Source from the content-addressed store, hash-verified

706class Text(GraphicsObject):
707
708 def __init__(self, centerPt, text):
709 GraphicsObject.__init__(self, ["justify","fill","text","font"])
710 self.setText(text)
711 self.anchor = centerPt.clone()
712 self.setFill(DEFAULT_CONFIG['outline'])
713 self.setOutline = self.setFill
714
715 def _draw(self, canvas, options):
716 p = self.anchor

Callers

nothing calls this directly

Calls 4

setTextMethod · 0.95
__init__Method · 0.45
cloneMethod · 0.45
setFillMethod · 0.45

Tested by

no test coverage detected