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

Method __init__

code/graphics/graphics.py:766–778  ·  view source on GitHub ↗
(self, centerPt, width)

Source from the content-addressed store, hash-verified

764class Entry(GraphicsObject):
765
766 def __init__(self, centerPt, width):
767 GraphicsObject.__init__(self, [])
768 self.anchor = centerPt.clone()
769 #print self.anchor
770 self.width = width
771 #self.text = tk.StringVar(_root)
772 #self.text.set("")
773 self.text = _tkCall(tk.StringVar, _root)
774 _tkCall(self.text.set, "")
775 self.fill = "gray"
776 self.color = "black"
777 self.font = DEFAULT_CONFIG['font']
778 self.entry = None
779
780 def _draw(self, canvas, options):
781 p = self.anchor

Callers

nothing calls this directly

Calls 3

_tkCallFunction · 0.85
__init__Method · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected