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

Method _draw

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

Source from the content-addressed store, hash-verified

778 self.entry = None
779
780 def _draw(self, canvas, options):
781 p = self.anchor
782 x,y = canvas.toScreen(p.x,p.y)
783 frm = tk.Frame(canvas.master)
784 self.entry = tk.Entry(frm,
785 width=self.width,
786 textvariable=self.text,
787 bg = self.fill,
788 fg = self.color,
789 font=self.font)
790 self.entry.pack()
791 #self.setFill(self.fill)
792 return canvas.create_window(x,y,window=frm)
793
794 def getText(self):
795 return _tkCall(self.text.get)

Callers

nothing calls this directly

Calls 1

toScreenMethod · 0.80

Tested by

no test coverage detected